Only one user can run scenario at a time in Webapp

Vebo123
Level 1
Only one user can run scenario at a time in Webapp

I have a former colleague who developed a code (Python, HTML, CSS) webapp that allows non-Dataiku users in our organization to run scenarios from my teams projects with different input parameters and receive the analysis output via email when the scenario completes. One item we've recently struggled with is the growing user base of our analysis tools and issues with multiple users using the webapp at once to run the same scenario. If one user already run the scenario and other users try to run the same them they have to receive popup like "Scenario already runnng". Queuing the scenario is not what we except. Only one user can run scenario at a time and if other user tries then they thay to receive popup massage without queuing scenario.

Any idea how we can achieve it?

0 Kudos
1 Reply
Turribeach

Validate the scenario that you will execute via the Python API to make sure it is not running, if it is running don't submit the request to run it again. 

0 Kudos