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?

  • vaalla
    link
    fedilink
    11 year ago

    Can you use async in your project?

    If Yes, you can spawn a task that will listen on a channel. If you need to run them in parallel probably you can find a mpmc channel.

    If you need for them to run at a specific time, spawn task ,tokio::time::sleep , run job, loop.

    Don’t know any crate just for this.

    • @nothingnessOP
      link
      01 year ago

      If you need for them to run at a specific time, spawn task ,tokio::time::sleep , run job, loop.

      How would you do it every 30 minutes? Every 5 hours? Once a day?