View Source mix kiq.gen.worker (Kiq v0.7.3)
Generates a new worker.
The module will be nested within the lib
directory.
Examples
mix kiq.gen.worker MyApp.Workers.Business mix kiq.gen.worker MyApp.Workers.Essential -q critical mix kiq.gen.worker MyApp.Workers.Unimportant -r 3 mix kiq.gen.worker MyApp.Workers.Lifeless --no-dead
Command Line Options
-d
,--dead
,--no-dead
— whether the job will be pushed to the dead set when retries are exhausted-q
,--queue
— the queue this worker's jobs will run in-r
,--retry
— the number of times jobs will be retried