How to identify individual workflow jobs within a schedule?

For example, we have three workflows W1, W2, W3, and a schedule S1 which runs them in sequence.

It is easy to identify whether a job triggered by S1 is running or finished, via scheduled-jobs API and jobs/{jobId} API.

However, I’ve got a requirement that even when S1 job is running, status of each workflow within the job should be reported. (like W1 is finished, W2 is running, and W3 is loading.)

I tried jobs API without jobID to list all jobs, but got no idea how to identify which job of a workflow is triggered by S1 job, since I could not find jobs of W1~W3 with createdVia=schedule.

Is there any way to breakdown a scheduled job into workflow level, using API?

Hi shonersul,

Welcome to our community!
Unfortunately, I do not have a direct solution for this specific scenario, but we do have an internal request to make caller-callee relationships explicit. (Something that he call workflow nodes should provide the job id of the caller workflow when creating the callee job.) The reference number for this request is AP-22098.

Best regards,
Attila

1 Like