Warm proceeding job environment
M
Max Countryman
One thing that slows down our workflows quite a lot is the fact that jobs dependent on parent jobs don't spin up resources until the parent has completely finished. This means that when the children start they have to grab their Docker image and go through all the usual phases of setup just to get to the real work (this is fairly expensive in terms of build time).
It would be really nice if you could "warm" the child jobs by configure the child job to run steps up until a configurable step while the parent is still running or alternatively to configure a step in the parent after which the children will be booted up.
CCI-I-1059
M
Max Countryman
> Curious to know what the scenarios are where you don’t want to run the steps in the pre-warmed job in the same container as the one you’re running?
So this is another option. It's fairly inelegant in that the jobs are logically independent and this means that failures are a little harder to understand: did the deploy fail or the test suite that runs against that deployed code? Question like that last are harder to understand when they happen in the same job.
> If you could start the next job in parallel and wait for some state to be true would that also work?
Yes, this would most likely work.
> Also, are you willing to pay for that extra wait time?
We would much rather pay the credits than pay the build time cost.
N
Nathan Dintenfass
Curious to know what the scenarios are where you don’t want to run the steps in the pre-warmed job in the same container as the one you’re running? If you could start the next job in parallel and wait for some state to be true would that also work? Also, are you willing to pay for that extra wait time?