roger v1.2.1 Roger.Partition.Worker View Source

Handles the decoding and execution of a single job.

Besides running the job, various administrative tasks need to be performed as well, namely:

  • Check whether the job has not been cancelled in the meantime

  • Check whether another job is currently running with the same execution_key, and if so, delay this current job until the currently running one finishes

  • On job failure, the job needs to be queued in the retry queue, if the job is marked retryable. By default, jobs are not retried.

Link to this section Summary

Link to this section Functions

Link to this function start_link(partition_id, channel, payload, meta) View Source