Task retry options

(imported topic written by Ashwin.D91)

Hey guys,

Was wondering if anybody could help me with this.

I know that while settting options to retry a task, we can set how many times to retry, whether the pc has to be restarted for retrying and the time period to wait before retrying. But is there any way to set it such a way that if the action fails run a tool or run another task (possibly a housekeeping tool) before retrying?

Thanks

Ashwin

(imported comment written by BenKus)

Hmm… There is no way built in to the Take Action Dialog to do this, but there might be a way you can do this by crafting relevance inside your Task so that it will behave differently on the retry… Is your question about a custom Fixlet or did you want to apply this to any Fixlet that we publish?

Ben

(imported comment written by Ashwin.D91)

Its for custom fixlets…

Most probably software distribution jobs i guess…if the software distribution failed, then before retry, run a housekeeping tool and then try the software distribution again…Thats the scenario…

Thanks

Ashwin

(imported comment written by BenKus)

You can try adding to your actionscript something like:

if {active count of action > 1}
waithidden someapp.exe
endif

and then it will only run the command if the action has re-run…

I didn’t get a chance to test this so you should see if this meets your needs…

Ben

(imported comment written by Ashwin.D91)

Hi Ben,

Thanks for that. Will test it out and let you know

Ashwin