Cronicle icon indicating copy to clipboard operation
Cronicle copied to clipboard

[API] Enpoint run_event with multiple jobs

Open henriquegranatto opened this issue 4 years ago • 1 comments

Summary

At the company where we work, we use the /api/app/run_event/v1 endpoint of the Chronicle API to execute some events. I would like to know if it is possible through this endpoint (or any other) to execute a list of jobs?

For example, I tried to send a request to the /api/app/run_event/v1 endpoint with the following payload

[
    {
        "id": "el1e2c16lom"
    }
]

And I got the following answer

{
    "code": "event",
    "description": "Failed to find event: No criteria specified"
}

henriquegranatto avatar Mar 30 '22 21:03 henriquegranatto

Hello! While this isn't possible with the current version of Cronicle, the next major release (Cronicle 2.0, a.k.a. Orchestra) will allow this through workflows. Basically, you define a workflow as a sequence of events, but you can opt to run them in parallel instead of in series. Then you can just send one API call to /api/app/run_event and start the whole workflow and all jobs within it. Orchestra will be released this year (2022).

jhuckaby avatar Apr 04 '22 23:04 jhuckaby