diff --git a/src/cli/cron-cli/shared.ts b/src/cli/cron-cli/shared.ts index 5e5efc81a..684eedfcc 100644 --- a/src/cli/cron-cli/shared.ts +++ b/src/cli/cron-cli/shared.ts @@ -141,7 +141,7 @@ export function printCronList(jobs: CronJob[], runtime = defaultRuntime) { const now = Date.now(); for (const job of jobs) { - const idLabel = pad(job.id, CRON_ID_PAD); + const idLabel = pad(job.jobId ?? job.id ?? "", CRON_ID_PAD); const nameLabel = pad(truncate(job.name, CRON_NAME_PAD), CRON_NAME_PAD); const scheduleLabel = pad( truncate(formatSchedule(job.schedule), CRON_SCHEDULE_PAD),