File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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(
You can’t perform that action at this time.
0 commit comments