edgurgel / verk

A job processing system that just verks! 🧛‍
https://hex.pm/packages/verk
MIT License
721 stars 65 forks source link

Question. Can Verk check more frequently for new jobs? #173

Closed florinpatrascu closed 5 years ago

florinpatrascu commented 5 years ago

Hi there - I have a system using Verk and I am curious if Verk can check for new jobs more frequently (with Redis)? If yes, is that a configuration setting I could use? Thank you!

edgurgel commented 5 years ago

Yes. There's a workers_manager_timeout which is not the best name I've ever created 🤔

https://github.com/edgurgel/verk/blob/master/config/config.exs#L9

We use this number (in milliseconds) + some randomness to fetch new jobs from Redis.

florinpatrascu commented 5 years ago

Awesome! Thank you!!