Skip to content

Commit ebc128a

Browse files
committed
fix(jobs): be less strict about data types
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
1 parent 5efa292 commit ebc128a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/private/BackgroundJob/JobRuns.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ public function runningJobs(int $limit = 200): \Generator {
7272
$row['run_id'],
7373
$this->classesRegistry->getName($row['class_id']),
7474
$snowflakeInfo->getServerId(),
75-
$row['pid'],
75+
(int)$row['pid'],
7676
$snowflakeInfo->getCreatedAt(),
77-
JobStatus::from($row['status']),
77+
JobStatus::from((int)$row['status']),
7878
);
7979
}
8080
}

lib/public/BackgroundJob/JobRun.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626
public function __construct(
2727
/** Run ID (Snowflake ID) */
28-
public int $runId,
28+
public int|string $runId,
2929
/** Class name */
3030
public string $className,
3131
/** Server ID */

0 commit comments

Comments
 (0)