Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Server Discussions

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

Lock app when in use

JTCairns
8 - Asteroid

Has anyone been able to figure out a way to only allow one person at a time to use an app? working with chained apps and getting issues with multiple users. I am keen to avoid making bespoke input/output file names.

2 REPLIES 2
WilliamR
Alteryx
Alteryx

One way should be to use Alteryx Server API to check if the apps has already been put in queue in the server or is being executed by another user.

You can read more information on how to use Alteryx Server Api within your workflow here.

 

Another solution would be to create a "flag" (in a file for example) and to put a boolean value inside (1) when you begin the workflow and (0) at the end. You check this value prior to launch your process: if 0 then you continue else you stop. But you have to manage the fact that if your workflow crash, the value will not be put at 0 and the next execution will not be possible (so add a timestamp information to evaluate this situation).

 

Perhaps, there is a more smart solution.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

JTCairns
8 - Asteroid

Hi @WilliamR 

 

I have looked at the API as a solution but it gets itself a bit confused as i'm using chained apps. I will have a think about a Boolean marker.

 

I think this would work for most people though so have marked as solution.