postjob 0.1.5 → 0.1.6
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 +4 -4
- data/lib/postjob/cli/run.rb +11 -0
- 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: 59c807c8972b7fd832b05791eeadb33973a64c6b
|
|
4
|
+
data.tar.gz: 4d53811bbce64a7810438d3280b234ad8a6c7dd0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 623abb4dd78666f69c5182cc993e0f943b74b34c42693a9f451cd82dd765bcdaffdbf40a0cf84e63075b89d2e52594d26a817a1167e152c5ecff7919955becd5
|
|
7
|
+
data.tar.gz: 0cad9c44bb0c42a160a610ba9d806ee2ffdc40b0b340609d341767a33464773d4a2140c5e1e71a1fd0cbe495b79d7df93341320c435785b8295e9ecbc324a2d3
|
data/lib/postjob/cli/run.rb
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
module Postjob::CLI
|
|
2
|
+
# Run a single job
|
|
2
3
|
def step
|
|
3
4
|
run count: 1
|
|
4
5
|
end
|
|
5
6
|
|
|
7
|
+
# Run postjobs.
|
|
8
|
+
#
|
|
9
|
+
# This method runs jobs as they become ready.
|
|
10
|
+
#
|
|
11
|
+
# Parameters:
|
|
12
|
+
#
|
|
13
|
+
# - count=<count> maximum number of jobs to process. Default: unlimited.
|
|
14
|
+
# - fast=<count> reduce waiting time after error (for development only!)
|
|
15
|
+
# - quiet don't show progress.
|
|
16
|
+
#
|
|
6
17
|
def run(count: nil, fast: false, quiet: false)
|
|
7
18
|
count = Integer(count) if count
|
|
8
19
|
Postjob.fast_mode = fast
|