You are viewing limited content. For full access, please sign in.

Discussion

Discussion

A way to make individual workflows single-threaded

posted on March 22, 2016

We need a way to make individual workflows single-threaded such that only one instance can run at a time, and if another instance triggers when one is already active, it's "queued up" and has to wait until the first one completes.

There are many use cases for this. For example, we want to track counters inside metadata fields. When a workflow runs, it needs to retrieve the current counter, increment it by one and assign it to another entry. The problem is that if two instances of that workflow run, they get the same counter number (since they're checking the current counter at the exact same time), which messes up everything.

I know the WF Admin Console has a setting to make ALL workflows single-threaded, but we don't want that because then we lose out on the performance benefits.

1 0
You are not allowed to reply in this post.

Discussion 2

Discussion 1

Sign in to reply to this post.