Is it possible to run a matrix strategy job async #26809
-
I have a template workflow yml file with 2 jobs, each with the same matrix strategy. The second job depends on the first with Example main.yml:
Where I use Suppose the ssql job for ‘apple’ takes 3 times as long as for ‘pear’. I would like the next job, Rtrain, to proceed once the ssql job for ‘pear’ is done without waiting for the ‘apple’ one to complete. Is this possible? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
For the
(see docs on the Then try to use ID of the concrete job you are interested in in the I don’t know if it will work, but I think it’s worth a try. |
Beta Was this translation helpful? Give feedback.
-
Presumably here I would need to pass the |
Beta Was this translation helpful? Give feedback.
-
No, you don’t need any artifacts. |
Beta Was this translation helpful? Give feedback.
-
Ah I see, so it’s expected the job id will always be the same, even on subsequent daily runs. OK, gonna try this, thank you! |
Beta Was this translation helpful? Give feedback.
No, you don’t need any artifacts.
${{ github.job }}
is just a string. You add that step to print it, run your workflow, see the value in the logs, copy it, and then you can remove that step and use the found value in the next job’sneeds
list.