fix(jobs): be less strict about data types

Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
This commit is contained in:
Benjamin Gaussorgues 2026-05-29 10:16:22 +02:00
parent 5efa292412
commit ebc128af73
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -72,9 +72,9 @@ final readonly class JobRuns implements IJobRuns {
$row['run_id'],
$this->classesRegistry->getName($row['class_id']),
$snowflakeInfo->getServerId(),
$row['pid'],
(int)$row['pid'],
$snowflakeInfo->getCreatedAt(),
JobStatus::from($row['status']),
JobStatus::from((int)$row['status']),
);
}
}

View file

@ -25,7 +25,7 @@ final readonly class JobRun {
*/
public function __construct(
/** Run ID (Snowflake ID) */
public int $runId,
public int|string $runId,
/** Class name */
public string $className,
/** Server ID */