Automatically restart process at job completion

Comments

5 comments

  • David Gollom Strategic Partner
    Top Contributor
    Celigo University Level 4: Legendary
    Answer Pro
    Great Answer
    Engaged

    You can use the Next Integration Flow option in the flow settings and select the same flow. This will create an infinite loop!

    0
  • Steven Smith

    For some reason that field doesn't show me the current process flows, only other process flows.

    0
  • David Gollom Strategic Partner
    Top Contributor
    Celigo University Level 4: Legendary
    Answer Pro
    Great Answer
    Engaged

    They took that loophole away!!  Sorry.  If you schedule it frequently it should be fine. It just won't run if it's alrady running. That's been my experience anyway.  

    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Steven Smith you can use next integration flow option to run a flow that has a dummy export on it (i.e. exporting 1 single record) and then you have an import step that calls the /v1/flows/<flowId>/run api to trigger the first flow to run again. The export on your second flow could be a select count(*) from unprocessed_records. That way it will only loop if there are still records to be processed. 

    1
  • Scott Henderson CTO
    Celigo University Level 1: Skilled
    Answer Pro
    Top Contributor

    Regarding "If it can't be automatically restarted and I have to run it on a schedule, what would happen if there is a delay in the process and the next schedule queues up while the job is still running?"

    It is totally harmless to schedule something more frequently then it is able to finish, and it will ignore any new scheduled runs if there is still something in progress.

    0

Please sign in to leave a comment.