Blog

Search This Blog

Loading...

Tuesday, September 18, 2012

New Feature: Auto Retry for IronWorker

IronWorker now has an auto retry feature that, if enabled, will automatically retry your tasks if they error out. You can set the number of times it should retry and the delay between retries.

Usage

While uploading your worker, simply set the retries and retries-delay parameters:

iron_worker upload my_worker --retries 5 --retries-delay 10

That example will retry 5 times (which means it will try up to six total times) and will wait 10 seconds between each retry. If any of those tasks is successful, it will stop retrying. In other words, it will continue to retry if each task in the sequence errors.

Be sure your tasks are idempotent when using this so that multiple runs don't have any side effects.

Cheers and let us know how it works for you.