https://pulumi.com logo
c

cool-egg-852

04/04/2019, 12:08 AM
Is there any way to have pulumi wait until a job is run before it executes any other changes?
We need to have migrations run before pods are deployed for php-fpm/nginx.
i

important-leather-28796

04/04/2019, 12:20 AM
not yet, I had the same issue but ended up putting the migration into the main deployment with the
maxSurge
method. Then use the
dependsOn
to wait for the deployment to complete.
this has worked for us and ends up much simpler than the migration - and effectively the same thing.
c

cool-egg-852

04/04/2019, 12:34 AM
What do you mean dependsOn?
I think I understand the other stuff though.
Cc @plain-businessperson-30883
i

important-leather-28796

04/04/2019, 12:37 AM
all resources allow
dependsOn
for chaining
c

cool-egg-852

04/04/2019, 12:38 AM
Oh nice. I will give this a shot. Thanks so much for the info.