pg_cron icon indicating copy to clipboard operation
pg_cron copied to clipboard

Log start & end time for all failed runs

Open kketch opened this issue 10 months ago • 0 comments

Currently start and end times are not recorded in the job_run_details table for job runs that fail to start due to connection problems, lack of available background workers when background execution is enabled, or other early-stage failures occurring before the cron task is in progress.

This change ensures that start_time & end_time are recorded for those failures. The intent is to guarantee that timestamps are always available in the log table once a job reaches a definitive state (succeeded / failed)

Fixes #246

kketch avatar Apr 24 '24 19:04 kketch