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?

  • @nothingnessOP
    link
    0
    edit-2
    1 year ago

    what if one of the calls crashes? how would you re-run it?

    • @[email protected]
      link
      fedilink
      11 year ago

      Best option is probably to add a wrapper around the thread that re-spawns it. But you can also just catch panics in the loop.

      • @nothingnessOP
        link
        0
        edit-2
        1 year ago

        How would you re-run it multiple times then? An internal should be progressively greater. How would you terminate it if it continues to produce an exception?