Exq.Worker.Server (exq v0.23.0)
View SourceWorker process is responsible for the parsing and execution of a Job.
It then broadcasts results to Stats / Manager.
Currently uses the terminate callback to track job success/failure.
Initialization:
job_serialized- Full JSON payload of the Job.manager- Manager process pid.queue- The queue the job came from.stats- Stats process pid.namespace- Redis namespacehost- Host name
Expects :work message after initialization to kickoff work.
Summary
Functions
Cancel the current job
Returns a specification to start this module under a supervisor.
Kickoff work associated with worker.
Callback implementation for GenServer.init/1.
Kickoff work associated with worker.
Functions
Cancel the current job
Returns a specification to start this module under a supervisor.
See Supervisor.
Kickoff work associated with worker.
This step handles:
- Parsing of JSON object
- Preparation of target module
Calls :dispatch to then call target module.
Callback implementation for GenServer.init/1.
Kickoff work associated with worker.