You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cron: Log and capture timeout errors in cron job execution #333
While checking packages/modelence/src/cron/jobs.ts, I noticed that when a cron job runs past its configured timeout, the state is reset back to false but no error is logged or reported. There is also a TODO comment left in the code regarding this.
Because of this, when a cron job times out in production, it fails silently without emitting any telemetry or logs.
Expected Behavior
When a cron job times out, it should log and capture the timeout error so we can track stuck or failing jobs in telemetry.
Proposed Solution
Create an error instance when a job times out and pass it to captureError from @/telemetry before resetting the job state.
Activity