que-scheduler 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/README.md +12 -3
- data/lib/que/scheduler/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b868cd1f3196296444a8927ad9c12f9e006b6c643033f96b93b61bf62ae871c3
|
4
|
+
data.tar.gz: 7367e82954c938a1ff1408dc65b8fd23042a88f0adbd9716e4763d43b6322bd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaf6d2512f701f1eb526eb7a89b60108b80b355581a37d3b4b5bae1cbccd6829006cadd9dff45a692d51aba79530fd0d13af05f67c4afd46b35411f7ebce552d
|
7
|
+
data.tar.gz: 75901d2616803d878c81317b7d6b70919fef77303264d80ad264d7f362e0664df9772607c563c922380cd27792e7e38493d3b586e6479dac25e7f7aea00ed8ca
|
data/README.md
CHANGED
@@ -32,8 +32,9 @@ files, but with additional features.
|
|
32
32
|
## Schedule configuration
|
33
33
|
|
34
34
|
The schedule file is a list of que job classes with arguments and a schedule frequency (in crontab
|
35
|
-
syntax). The format is
|
36
|
-
|
35
|
+
syntax). The format is similar to the resque-scheduler config format, though priorities must be supplied as
|
36
|
+
integers, and job classes must be migrated from Resque to Que. Cron syntax can be anything
|
37
|
+
understood by [fugit](https://github.com/floraison/fugit#fugitcron).
|
37
38
|
|
38
39
|
It has one additional feature, `schedule_type: every_event`. This is set on a job that must be run for every
|
39
40
|
single matching cron time that goes by, even if the system is offline over more than one match. To better process these `every_event` jobs, they are always enqueued with the first
|
@@ -65,6 +66,10 @@ SendOrders:
|
|
65
66
|
cron: "0 0 * * *"
|
66
67
|
args: ['open']
|
67
68
|
|
69
|
+
# Use simpler cron syntax.
|
70
|
+
SendBilling:
|
71
|
+
cron: "@daily"
|
72
|
+
|
68
73
|
# Altogether now
|
69
74
|
all_args_job:
|
70
75
|
cron: "0 0 * * *"
|
@@ -125,6 +130,10 @@ then reschedules itself. The flow is as follows:
|
|
125
130
|
1. Some time later it runs again. It knows what jobs it should be monitoring, and notices that some have are due. It enqueues those jobs and then itself. Repeat.
|
126
131
|
1. After a deploy that changes the config, the job notices any new jobs to schedule, and knows which ones to forget. It does not need to be re-enqueued or restarted.
|
127
132
|
|
128
|
-
##
|
133
|
+
## Inspiration
|
129
134
|
|
130
135
|
This gem was inspired by the makers of the excellent [Que](https://github.com/chanks/que) job scheduler gem.
|
136
|
+
|
137
|
+
## Contributors
|
138
|
+
|
139
|
+
* @jish
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: que-scheduler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harry Lascelles
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3.10'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: et-orbi
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.0.5
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.0.5
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: fugit
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -326,7 +340,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
326
340
|
version: '0'
|
327
341
|
requirements: []
|
328
342
|
rubyforge_project:
|
329
|
-
rubygems_version: 2.6
|
343
|
+
rubygems_version: 2.7.6
|
330
344
|
signing_key:
|
331
345
|
specification_version: 4
|
332
346
|
summary: A cron scheduler for Que
|