Problem with multiple instances of a workflow

Avatar

Avatar
Validate 1
Level 1
prakashr2929023
Level 1

Likes

3 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 1
prakashr2929023
Level 1

Likes

3 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
prakashr2929023
Level 1

03-09-2019

Hello Team,

I have a workflow which would be run by a scheduler every 30 minutes. Some times workflow is taking more than thirty minutes to finish and scheduler is creating a new instance of the workflow when the first instance is still running. When i checked the adobe documentation, i got to know about the option "The current task has priority" option in Advanced tab of scheduler. Even after using the "The current task has priority" option, i saw that multiple instances of workflow are running at the same time and lead to errors.

Is there any way to make sure from scheduler to  start the new execution only if current executing instance of workflow is finished ?

Thanks,

Prakash

Replies

Avatar

Avatar
Validate 1
MVP
kapilKochar
MVP

Likes

130 likes

Total Posts

144 posts

Correct reply

45 solutions
Top badges earned
Validate 1
Contributor
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
MVP
kapilKochar
MVP

Likes

130 likes

Total Posts

144 posts

Correct reply

45 solutions
Top badges earned
Validate 1
Contributor
Give Back 10
Give Back 5
Give Back 3
View profile
kapilKochar
MVP

03-09-2019

Hi Prakashr,

when you are aware that workflow will take extra time why you placing 30 min scheduler?  It will be easy to give enough time for a workflow to run and set scheduler timing accordingly.

Thanks,

Kapil Kochar

Avatar

Avatar
Contributor
MVP
Milan_Vucetic
MVP

Likes

166 likes

Total Posts

384 posts

Correct reply

135 solutions
Top badges earned
Contributor
Springboard
Shape 1
Validate 25
Validate 10
View profile

Avatar
Contributor
MVP
Milan_Vucetic
MVP

Likes

166 likes

Total Posts

384 posts

Correct reply

135 solutions
Top badges earned
Contributor
Springboard
Shape 1
Validate 25
Validate 10
View profile
Milan_Vucetic
MVP

04-09-2019

Hi Prakashr,

you may add an TEST node after scheduler with  instance.vars.running > 0

If True - that branch connect to End node (because your workflow is currently running).

If False - that branch connect with your workflow to start it.

Regards,

Milan