Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xuan Trung Le
venjob
Commits
a2abb688
Commit
a2abb688
authored
Nov 16, 2017
by
Xuan Trung Le
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Schedule Cron Jobs with the Whenever Gem
parent
8d0f1d38
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
0 deletions
+13
-0
.gitignore
+2
-0
Gemfile
+1
-0
Gemfile.lock
+4
-0
config/schedule.rb
+6
-0
No files found.
.gitignore
View file @
a2abb688
...
...
@@ -20,3 +20,5 @@
# Ignore application configuration
/config/application.yml
/public
Gemfile
View file @
a2abb688
...
...
@@ -24,6 +24,7 @@ gem "settingslogic"
gem
'
sidekiq
'
gem
'
rsolr
'
gem
'
rubyzip
'
gem
'
whenever
'
,
:require
=>
false
group
:development
,
:test
do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
...
...
Gemfile.lock
View file @
a2abb688
...
...
@@ -47,6 +47,7 @@ GEM
activemodel (>= 4.0.0)
activesupport (>= 4.0.0)
mime-types (>= 1.16)
chronic (0.10.2)
concurrent-ruby (1.0.5)
connection_pool (2.2.1)
crass (1.0.2)
...
...
@@ -180,6 +181,8 @@ GEM
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)
whenever (0.9.7)
chronic (>= 0.6.3)
PLATFORMS
ruby
...
...
@@ -202,6 +205,7 @@ DEPENDENCIES
tzinfo-data
uglifier (>= 1.3.0)
web-console (>= 3.3.0)
whenever
BUNDLED WITH
1.15.4
config/schedule.rb
0 → 100644
View file @
a2abb688
set
:output
,
{
:standard
=>
'log/cron_log.log'
,
:error
=>
'log/cron_errors.log'
}
env
:PATH
,
ENV
[
'PATH'
]
every
1
.
day
do
rake
'data:insert_job'
,
environment: :development
end
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