Closed xzyfer closed 1 year ago
@xzyfer that is indeed an interesting use case... I had a written out explanation as to how your use-case was unique and an outlier and when I went in to link up the parts of the code to back up everything I said I realized you were right.
I am thinking of adding a new option so that you can optionally turn off the part of the code that starts dependencies before the main container (with a warning as that may cause logs to be quite messy or errors)
I appreciate your thoroughness.
When using the
service_completed_successfully
in docker-compose.yaml with thedependencies: true
the dependency container can run multiple due to use ofscale=0
.When this plugin starts the dependencies using the before, it execute the
seeder
containerWhen it then runs the service container which has a
condition: service_completed_successfully
on theseeder
container, it results in theseeder
container running a second time.This is behaviour is unexpected and problematic for containers that aren't re-entrant. It's also appears multiple execution behaviour is racey as it doesn't happen for every run.
Is it possible to remove the
--scale "testrunner=0"
behaviour whendependencies: true
or at least make it possible to disable via configuration? I understand for backwards compatibility reasons changing the existing default behaviour may be problematic, andcondition: service_completed_successfully
is relatively new feature.