Skip to content

Commit df1e592

Browse files
authored
Merge pull request #32 from Oefenweb/fix-missing-taskdata-argument
Fix missing taskdata argument
2 parents 7859fca + 8fa74b9 commit df1e592

8 files changed

Lines changed: 190 additions & 157 deletions

File tree

.travis.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ env:
1414
- DB=mysql CAKE_VERSION=2
1515

1616
matrix:
17-
- DB=mysql CAKE_VERSION=2.4
18-
- DB=mysql CAKE_VERSION=2.5
1917
- DB=mysql CAKE_VERSION=2.6
2018
- DB=mysql CAKE_VERSION=2.7
2119
- DB=mysql CAKE_VERSION=2.8
20+
- DB=mysql CAKE_VERSION=2.9
2221

2322
matrix:
2423
include:
@@ -32,14 +31,12 @@ matrix:
3231
env:
3332
- FOC_VALIDATE=1
3433
exclude:
35-
- php: 7
36-
env: DB=mysql CAKE_VERSION=2.4
37-
- php: 7
38-
env: DB=mysql CAKE_VERSION=2.5
3934
- php: 7
4035
env: DB=mysql CAKE_VERSION=2.6
4136
- php: 7
4237
env: DB=mysql CAKE_VERSION=2.7
38+
- php: 7
39+
env: DB=mysql CAKE_VERSION=2.8
4340

4441
branches:
4542
only:

Console/Command/QueueShell.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ public function getOptionParser() {
109109
'help' => __d('queue', 'Name of the task.'),
110110
'required' => true,
111111
'choices' => $this->taskNames
112+
],
113+
'taskdata' => [
114+
'help' => __d('queue', 'Data needed by task.'),
115+
'required' => false,
112116
]
113117
]
114118
]

Locale/eng/LC_MESSAGES/queue.mo

93 Bytes
Binary file not shown.

Locale/eng/LC_MESSAGES/queue.po

Lines changed: 60 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -4,179 +4,189 @@
44
msgid ""
55
msgstr ""
66
"Project-Id-Version: Queue Plugin\n"
7-
"POT-Creation-Date: 2014-12-24 15:35+0100\n"
8-
"PO-Revision-Date: 2014-12-24 15:36+0100\n"
9-
"Last-Translator: Mischa ter Smitten <mischa.ter.smitten@gmail.com>\n"
7+
"POT-Creation-Date: \n"
8+
"PO-Revision-Date: 2016-12-07 23:47+0100\n"
9+
"Last-Translator: Mischa ter Smitten <mtersmitten@oefenweb.nl>\n"
1010
"Language-Team: \n"
11-
"Language: \n"
1211
"MIME-Version: 1.0\n"
1312
"Content-Type: text/plain; charset=UTF-8\n"
1413
"Content-Transfer-Encoding: 8bit\n"
1514
"Plural-Forms: nplurals=2; plural=n != 1;\n"
15+
"X-Generator: Poedit 1.5.4\n"
16+
"Language: en_GB\n"
17+
"X-Poedit-SourceCharset: UTF-8\n"
1618

17-
#: /Console/Command/QueueShell.php:100;103
19+
#: Console/Command/QueueShell.php:101;104
1820
msgid "Tries to call the cli `add()` function on a task."
1921
msgstr "Tries to call the cli `add()` function on a task."
2022

21-
#: /Console/Command/QueueShell.php:104
23+
#: Console/Command/QueueShell.php:105
2224
msgid "Tasks may or may not provide this functionality."
2325
msgstr "Tasks may or may not provide this functionality."
2426

25-
#: /Console/Command/QueueShell.php:108
27+
#: Console/Command/QueueShell.php:109
2628
msgid "Name of the task."
2729
msgstr "Name of the task."
2830

29-
#: /Console/Command/QueueShell.php:115
31+
#: Console/Command/QueueShell.php:114
32+
msgid "Data needed by task."
33+
msgstr "Data needed by task."
34+
35+
#: Console/Command/QueueShell.php:120
3036
msgid "Run a queue worker."
3137
msgstr "Run a queue worker."
3238

33-
#: /Console/Command/QueueShell.php:117
39+
#: Console/Command/QueueShell.php:122
3440
msgid "Run a queue worker, which will look for a pending task it can execute."
3541
msgstr "Run a queue worker, which will look for a pending task it can execute."
3642

37-
#: /Console/Command/QueueShell.php:120;122
43+
#: Console/Command/QueueShell.php:125;127
3844
msgid "Display general statistics."
3945
msgstr "Display general statistics."
4046

41-
#: /Console/Command/QueueShell.php:125;127
47+
#: Console/Command/QueueShell.php:130;132
4248
msgid "Manually call cleanup function to delete task data of completed tasks."
4349
msgstr "Manually call cleanup function to delete task data of completed tasks."
4450

45-
#: /Console/Command/QueueShell.php:130;132
51+
#: Console/Command/QueueShell.php:135;137
4652
msgid "Manually call cleanup function to delete task data of failed tasks."
4753
msgstr "Manually call cleanup function to delete task data of failed tasks."
4854

49-
#: /Console/Command/QueueShell.php:134
55+
#: Console/Command/QueueShell.php:139
5056
msgid "CakePHP Queue Plugin."
5157
msgstr "CakePHP Queue Plugin."
5258

53-
#: /Console/Command/QueueShell.php:154
54-
#: /Test/Case/Console/Command/QueueShellTest.php:131
59+
#: Console/Command/QueueShell.php:159
60+
#: Test/Case/Console/Command/QueueShellTest.php:131
5561
msgid "Error: Task not Found: %s"
5662
msgstr "Error: Task not Found: %s"
5763

58-
#: /Console/Command/QueueShell.php:196
64+
#: Console/Command/QueueShell.php:201
5965
msgid "Signal handler(s) could not be registered."
6066
msgstr "Signal handler(s) could not be registered."
6167

62-
#: /Console/Command/QueueShell.php:203
63-
#: /Test/Case/Console/Command/QueueShellTest.php:175
68+
#: Console/Command/QueueShell.php:208
69+
#: Test/Case/Console/Command/QueueShellTest.php:175
6470
msgid "Looking for a job."
6571
msgstr "Looking for a job."
6672

67-
#: /Console/Command/QueueShell.php:212
68-
#: /Test/Case/Console/Command/QueueShellTest.php:157
73+
#: Console/Command/QueueShell.php:217
74+
#: Test/Case/Console/Command/QueueShellTest.php:157
6975
msgid "Running job of task '%s' '%d'."
7076
msgstr "Running job of task '%s' '%d'."
7177

72-
#: /Console/Command/QueueShell.php:220
78+
#: Console/Command/QueueShell.php:225
7379
msgid "Job '%d' finished (took %s)."
7480
msgstr "Job '%d' finished (took %s)."
7581

76-
#: /Console/Command/QueueShell.php:233
82+
#: Console/Command/QueueShell.php:238
7783
msgid "Job '%d' did not finish, requeued."
7884
msgstr "Job '%d' did not finish, requeued."
7985

80-
#: /Console/Command/QueueShell.php:236
86+
#: Console/Command/QueueShell.php:241
8187
msgid "Nothing to do, exiting."
8288
msgstr "Nothing to do, exiting."
8389

84-
#: /Console/Command/QueueShell.php:240
90+
#: Console/Command/QueueShell.php:245
8591
msgid "Nothing to do, sleeping for %d second(s)."
8692
msgstr "Nothing to do, sleeping for %d second(s)."
8793

88-
#: /Console/Command/QueueShell.php:252
94+
#: Console/Command/QueueShell.php:257
8995
msgid "Reached runtime of %s seconds (max. %s), terminating."
9096
msgstr "Reached runtime of %s seconds (max. %s), terminating."
9197

92-
#: /Console/Command/QueueShell.php:260
98+
#: Console/Command/QueueShell.php:265
9399
msgid "Performing old job cleanup."
94100
msgstr "Performing old job cleanup."
95101

96-
#: /Console/Command/QueueShell.php:273
102+
#: Console/Command/QueueShell.php:278
97103
msgid "Deleting old completed jobs, that have had cleanup timeout."
98104
msgstr "Deleting old completed jobs, that have had cleanup timeout."
99105

100-
#: /Console/Command/QueueShell.php:283
106+
#: Console/Command/QueueShell.php:288
101107
msgid "Deleting failed Jobs, that have had maximum worker retries."
102108
msgstr "Deleting failed Jobs, that have had maximum worker retries."
103109

104-
#: /Console/Command/QueueShell.php:294
110+
#: Console/Command/QueueShell.php:299
105111
msgid "Jobs currenty in the queue:"
106112
msgstr "Jobs currenty in the queue:"
107113

108-
#: /Console/Command/QueueShell.php:304
109-
#: /Test/Case/Console/Command/QueueShellTest.php:119
114+
#: Console/Command/QueueShell.php:309
115+
#: Test/Case/Console/Command/QueueShellTest.php:119
110116
msgid "Total unfinished jobs: %s"
111117
msgstr "Total unfinished jobs: %s"
112118

113-
#: /Console/Command/QueueShell.php:309
119+
#: Console/Command/QueueShell.php:314
114120
msgid "Finished job statistics:"
115121
msgstr "Finished job statistics:"
116122

117-
#: /Console/Command/QueueShell.php:315
123+
#: Console/Command/QueueShell.php:320
118124
msgid "Finished jobs in database: %s"
119125
msgstr "Finished jobs in database: %s"
120126

121-
#: /Console/Command/QueueShell.php:316
127+
#: Console/Command/QueueShell.php:321
122128
msgid "Average job existence: %ss"
123129
msgstr "Average job existence: %ss"
124130

125-
#: /Console/Command/QueueShell.php:317
131+
#: Console/Command/QueueShell.php:322
126132
msgid "Average execution delay: %ss"
127133
msgstr "Average execution delay: %ss"
128134

129-
#: /Console/Command/QueueShell.php:318
135+
#: Console/Command/QueueShell.php:323
130136
msgid "Average execution time: %ss"
131137
msgstr "Average execution time: %ss"
132138

133-
#: /Console/Command/QueueShell.php:367;372
139+
#: Console/Command/QueueShell.php:372;377
134140
msgid "Caught %s signal, exiting."
135141
msgstr "Caught %s signal, exiting."
136142

137-
#: /Console/Command/QueueShell.php:224
143+
#: Console/Command/QueueShell.php:229
138144
msgid "%d second"
139145
msgid_plural "%d seconds"
140146
msgstr[0] "%d second"
141147
msgstr[1] "%d seconds"
142148

143-
#: /Console/Command/Task/QueueExampleTask.php:52;84
149+
#: Console/Command/Task/QueueExampleTask.php:52;84
144150
msgid "CakePHP Queue Example task."
145151
msgstr "CakePHP Queue Example task."
146152

147-
#: /Console/Command/Task/QueueExampleTask.php:54
153+
#: Console/Command/Task/QueueExampleTask.php:54
148154
msgid "This is a very simple example of a queueTask."
149155
msgstr "This is a very simple example of a queueTask."
150156

151-
#: /Console/Command/Task/QueueExampleTask.php:55
157+
#: Console/Command/Task/QueueExampleTask.php:55
152158
msgid "Now adding an example Task Job into the Queue."
153159
msgstr "Now adding an example Task Job into the Queue."
154160

155-
#: /Console/Command/Task/QueueExampleTask.php:56
156-
msgid "This task will only produce some console output on the worker that it runs on."
157-
msgstr "This task will only produce some console output on the worker that it runs on."
161+
#: Console/Command/Task/QueueExampleTask.php:56
162+
msgid ""
163+
"This task will only produce some console output on the worker that it runs "
164+
"on."
165+
msgstr ""
166+
"This task will only produce some console output on the worker that it runs "
167+
"on."
158168

159-
#: /Console/Command/Task/QueueExampleTask.php:58
169+
#: Console/Command/Task/QueueExampleTask.php:58
160170
msgid "To run a Worker use:"
161171
msgstr "To run a Worker use:"
162172

163-
#: /Console/Command/Task/QueueExampleTask.php:59
173+
#: Console/Command/Task/QueueExampleTask.php:59
164174
msgid "\tcake queue runworker"
165175
msgstr "\tcake queue runworker"
166176

167-
#: /Console/Command/Task/QueueExampleTask.php:61
177+
#: Console/Command/Task/QueueExampleTask.php:61
168178
msgid "You can find the sourcecode of this task in: "
169179
msgstr "You can find the sourcecode of this task in: "
170180

171-
#: /Console/Command/Task/QueueExampleTask.php:67
181+
#: Console/Command/Task/QueueExampleTask.php:67
172182
msgid "OK, job created, now run the worker"
173183
msgstr "OK, job created, now run the worker"
174184

175-
#: /Console/Command/Task/QueueExampleTask.php:69
185+
#: Console/Command/Task/QueueExampleTask.php:69
176186
msgid "Could not create Job"
177187
msgstr "Could not create Job"
178188

179-
#: /Console/Command/Task/QueueExampleTask.php:86
189+
#: Console/Command/Task/QueueExampleTask.php:86
180190
msgid " ->Success, the Example Task was run.<-"
181191
msgstr " ->Success, the Example Task was run.<-"
182192

Locale/nld/LC_MESSAGES/queue.mo

92 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)