delayed_job_recurring 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/delayed/recurring_job.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8d518aa85ad86f9742ece8b2e1b16f73366534b
|
4
|
+
data.tar.gz: a3cb49cc1591de7641b15cf91183a302f8965023
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36275c6b273c10b4f68cfd38ce8c4ae0801c24c9e1330c4072ebbef9b30236562b19e3364ba265c046106803e97f549fe6d3120be5f7bd250d07473eca939bdb
|
7
|
+
data.tar.gz: 513b013afe5c8d4028524c637ca11d2d7a13fa9682f6521be3069c443fe6dbe28443adfc0f9a61ac1ae718f764bd1b02a5c56a101d60b2c16823b61a10bebcb0
|
@@ -146,10 +146,11 @@ module Delayed
|
|
146
146
|
# Main interface to start this schedule (adds it to the jobs table).
|
147
147
|
# Pass in a time to run the first job (nil runs the first job at run_interval from now).
|
148
148
|
def schedule(options = {})
|
149
|
-
schedule!(options)
|
149
|
+
schedule!(options) unless scheduled?
|
150
150
|
end
|
151
151
|
|
152
152
|
def schedule!(options = {})
|
153
|
+
return unless Delayed::Worker.delay_jobs
|
153
154
|
unschedule
|
154
155
|
new.schedule!(options)
|
155
156
|
end
|