KScript docs
EN

Queues and jobs: KScript.Queue

Errors

A job that runs past its timeout throws JobTimeout, a kind of Timeout. failed(err) receives a JobFailed, with the last error as err.cause, and @fail_job('message') throws one too. Both may be caught, listed in retry_on and fail_on, and extended like any other error type.