run-x / opta

The next generation of Infrastructure-as-Code. Work with high-level constructs instead of getting lost in low-level cloud configuration.

Home Page:https://docs.opta.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for waits_for_job

edeesis opened this issue · comments

What would you like to be added:

Helm Release has a waits_for_job argument that will hold the terraform from completing until the jobs complete.

I would like to wait for jobs to complete before I deploy my k8s-service module.

Why is this needed:

When running migrations, you want the migrations to be complete before deploying your app code, otherwise your app could start querying a column that is not there yet, causing 500 errors.

Extra info (e.g. existing slack convo link):

https://opta-group.slack.com/archives/C0240NBKUMT/p1653335558506789?thread_ts=1653099767.603579&cid=C0240NBKUMT

Related:

#893

OK, will be in ~2 weeks