how to display a running.. while running a scenario by using webapp

Garima_Modi
Garima_Modi Registered Posts: 4

how to display a running.. while running a scenario by using webapp and also how to refresh that webapp page after scenario run?

Tagged:

Answers

  • Alexandru
    Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,322 Dataiker

    Hi,
    If you want to run a scenario from a webapp you will need to use the scenario API :
    https://developer.dataiku.com/latest/concepts-and-examples/scenarios.html#variant-1-run-and-wait-for-it-to-complete
    Note that generally webapps are multi-user, so running the same scenario multiple times will lead to concurrency issues. You will need to handle the state and e, ensure multiple users don't run the same scenario concurrently

    From Webapps, you will generally want to use Dataiku Application + temporary instances where each user will create a app instance, run the scenario in that isolated app instance and return the output: https://developer.dataiku.com/latest/api-reference/python/dataiku-applications.html#dataikuapi.dss.app.DSSApp.create_temporary_instance

    If you need further assistance on this topic I would suggest you reach out to support to coordinate further assistance.

    Thanks

Setup Info
    Tags
      Help me…