Is there any library for the queueing mechanism?
What’s used by the most - Cron? But a task or rather script executed by Cron won’t access to the context of an application. Meaning, a task will have be an independent unit. Whereas I want is a library to use inside a project such that it’ll have access to everything.
Anything similar to Sidekiq exist in Rust?
@kevincox How do you stop the job? Do you use channels like in Go?
It depends. Sometimes you can just put an exit call at the end of
main
to kill the thread. If you want to attempt graceful shutdown then usually I just use a booleanshutdown
flag. Then the loop becomeswhile !shutdown.get() {