tobi / delayed_job

Database backed asynchronous priority queue -- Extracted from Shopify
http://tobi.github.com/delayed_job
MIT License
2.15k stars 1.25k forks source link

Worker naming example #2

Open quasor opened 15 years ago

quasor commented 15 years ago

Would be great to see an example of how to override the worker's name.

martennilsson commented 15 years ago

hear, hear

radiospiel commented 14 years ago

Apparently, this would be

Delayed::Job.worker_name = "worker_name";

benfyvie commented 13 years ago

I have submitted a pull request for a patch to be able to specify a worker_name upon initialization of a worker. Currently it seems this can only be done after it has been initialized, which doesn't seem beneficial for any purpose that I can think of.

see issue #35 https://github.com/tobi/delayed_job/issues/#issue/35