Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rails-api-with-engine-template
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
rails-api-with-engine-template
Commits
94beede8
Commit
94beede8
authored
Mar 31, 2023
by
liyijie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update sidekiq.yml error
parent
56821d8a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
application_controller.rb
src/app/controllers/application_controller.rb
+2
-0
sidekiq.yml
src/config/sidekiq.yml
+10
-9
No files found.
src/app/controllers/application_controller.rb
View file @
94beede8
...
@@ -2,4 +2,6 @@ class ApplicationController < ActionController::API
...
@@ -2,4 +2,6 @@ class ApplicationController < ActionController::API
include
ActionController
::
Helpers
include
ActionController
::
Helpers
include
ActionController
::
RailsCom
include
ActionController
::
RailsCom
include
ActionController
::
Caching
include
ActionController
::
Caching
include
RailsData
::
Controller
::
Importable
include
RailsData
::
Controller
::
Exportable
end
end
src/config/sidekiq.yml
View file @
94beede8
...
@@ -4,12 +4,13 @@
...
@@ -4,12 +4,13 @@
:queues
:
:queues
:
-
default
-
default
:max_retries
:
2
:max_retries
:
2
:schedule
:
:scheduler
:
# task_scheduler_reptile:
:schedule
:
# cron: '30 0 * * *' # 每天
# task_scheduler_reptile:
# class: TaskSchedulerReptile
# cron: '30 0 * * *' # 每天
# description: '爬取新闻和轮播图'
# class: TaskSchedulerReptile
# announcement_scheduler:
# description: '爬取新闻和轮播图'
# cron: '0 */1 * * *' # 每1小时
# announcement_scheduler:
# class: 'AnnouncementScheduler'
# cron: '0 */1 * * *' # 每1小时
# description: '获取通知公告'
# class: 'AnnouncementScheduler'
# description: '获取通知公告'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment