shinyscorpion / task_bunny

TaskBunny is a background processing application written in Elixir and uses RabbitMQ as a messaging backend
MIT License
202 stars 30 forks source link

Scheduled job #30

Closed ono closed 7 years ago

ono commented 7 years ago

Schedule a job execution with delay option.

e.g. execute SampleJob in 10 minutes:

SampleJob.enqueue(payload, delay: 600_000)
ono commented 7 years ago

I also thought of perform_in but it is also misleading since it might not be performed at that time if worker queue is busy. I plan to update README with another PR - will note that delay still assures the message is queued.