Skip to content

Commit bced5aa

Browse files
committed
Fix up docs.
1 parent 29cf191 commit bced5aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/sections/queueing_jobs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,23 +160,23 @@ class FooTask extends Task {
160160
['id' => $jobId]
161161
);
162162
$foo->doFirstPartOfTask();
163-
$queuedJobsTable->updateProgress($jobId, 33);
163+
$queuedJobsTable->updateProgress($jobId, 0.33);
164164

165165
// Part two
166166
$queuedJobsTable->updateAll(
167167
['status' => 'Doing the next thing'],
168168
['id' => $jobId]
169169
);
170170
$foo->doNextPartOfTask();
171-
$queuedJobsTable->updateProgress($jobId, 66);
171+
$queuedJobsTable->updateProgress($jobId, 0.66);
172172

173173
// Part three
174174
$queuedJobsTable->updateAll(
175175
['status' => 'Doing the last thing'],
176176
['id' => $jobId]
177177
);
178178
$foo->doLastPartOfTask();
179-
$queuedJobsTable->updateProgress($jobId, 100);
179+
$queuedJobsTable->updateProgress($jobId, 1.00);
180180

181181
// Done
182182
$queuedJobsTable->updateAll(

0 commit comments

Comments
 (0)