We're excited to announce that we'll be partnering with Credly starting October 19th - see what this means and read the announcement blog here!

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.

Restart workflows after crash

AndreyBaburov
8 - Asteroid

Please advise, how can we manage automatically restarting of workflows in case of crashing.

Imagine situation:

  1. we have scheduled workflow.
  2. Workflow runs due to schedule.
  3. During running some crash happened:
    1. data source|target is unavailable,
    2. service is unexpectedly stopped, etc.
  4. We have to restart crashed workflows to repeat data processing in two cases:
    1. when workflow is finished with error
    2. when service crashed/restarted - to resume/restart crashed workflows 

 

How can we do it? For example - set up several attempts until success.

2 REPLIES 2
echuong1
Alteryx Alumni (Retired)

There is not an "automatic rerun" option available. However, you can replicate this using the Events option. 

 

Essentially, you can add an event to run after the workflow completes with errors. You'd create an event to use the Alteryx engine command along with the workflow to run after this failure. It would keep doing this until successful. See this link for more information:

https://help.alteryx.com/current/designer/run-workflows-command-line

 

 

Other options are to use the Conditional runner Crew Macro or to schedule your workflow to run every couple of minutes.

 

Hope this helps!

AndreyBaburov
8 - Asteroid

Thanks for response.

Can I somehow manage gallery schedule from command line?

If I use Events option, I would like to not run workflow immediately after Errors, but schedule it one hour later via Gallery API.