roger v1.0.0 Roger.Partition.Worker

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.

Summary

Functions

name(job_id)
start_link(partition_id, channel, payload, meta)