orchestrator-core icon indicating copy to clipboard operation
orchestrator-core copied to clipboard

build and push container image action fails most of the time

Open hanstrompert opened this issue 2 years ago • 1 comments

The Build and push container image action can fail because it needs the package build by the Upload Python Package action that might not be finished yet. Please fix this race condition.

hanstrompert avatar Oct 03 '23 11:10 hanstrompert

Make the github action more robust. Perhaps allow 5 retries before actually failing.

pboers1988 avatar Jan 17 '24 13:01 pboers1988

https://github.com/workfloworchestrator/orchestrator-core/pull/234

It seems like a solution was attempted here, but then reverted due to a tag ref not being available. The only solution at present appears to be merging these two workflows into one and then making them dependent using the needs keyword

gstewart86 avatar Feb 10 '25 20:02 gstewart86

I believe you can also specify dependencies between workflows, something like the following could perhaps work?

on:
  workflow_run:
    workflows: ["Upload Python Packag"]
    types: 
      - completed

hanstrompert avatar Feb 11 '25 20:02 hanstrompert

Nice solution @gstewart86!

hanstrompert avatar Feb 12 '25 19:02 hanstrompert