Skip to content

Commit 561b4a3

Browse files
authored
Update QueuedJobsTable.php
Progress is a float between 0 and 1. Passing 100 throws an InvalidArgumentException in ProgressHelper
1 parent 886eeac commit 561b4a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/Table/QueuedJobsTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ public function updateProgress($id, $progress, ?string $status = null): bool {
672672
*/
673673
public function markJobDone(QueuedJob $job): bool {
674674
$fields = [
675-
'progress' => 100,
675+
'progress' => 1,
676676
'completed' => $this->getDateTime(),
677677
];
678678
$job = $this->patchEntity($job, $fields);

0 commit comments

Comments
 (0)