Hello everyone,
I’m trying to use Action Flow to trigger chained data jobs, meaning job A is executed, once it’s done job B is executed, once it’s done job C is executed.
Ideally, I would like to launch Data Model Schedule from Action Flow, but I’m only able to launch data jobs and load data model.
What I’ve done so far is:
1. Creating json file with all my jobs ID (A,B,C) - Parse Json Module
2. Creating a POST request using API Celonis Key, to access data pool and launch jobs, load data model - HTTP Make a request Module
3. Using Iterator module to repeat step 2 for all job ID
The issue I’m facing is, job A need to be completed before launching job B and same for job B and C (this is what I’m calling chained data jobs). Configuring a Sleep in the iterator loop greater than the running time of my jobs is working, but not optimized.
My question is:
Do you know if there is a way to trigger chained data jobs in Action Flow, meaning triggering Data Model Schedule or launching several jobs at the same time, that put in a queue until the previous one is ended.
Thank you for your help :)
Solved
Trigger chained data jobs using Action Flows
Best answer by janpeter.van.d
Hi
It is possible to run a schedule via an Action Flow.
You should use the HTTP module as described. The Endpoint should be:
https://<TEAM>.<REALM>.celonis.cloud/integration/api/pools/<POOL_ID>/scheduling/<SCHEDULE_ID>/execute
Note that this is using the legacy API of Celonis. Somehow, the functionality to trigger schedules got removed in the second version of the API. To illustrate, this will not work:
I hope this helps!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.