Skip to content

Within the same job, I would like to be able to run the next op after I receive a webhook response or a message in my queue #23133

Answered by garethbrickman
biancarosa asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @biancarosa, at this time there is no way to pause/stop a job while awaiting the outcome of an external process and then resume it. A path of least resistance would require splitting each op into 2 jobs: this way Op1 could finish and then you could use a sensor to poll for when the external process has completed via an External Asset and only then trigger Op2 to run in its own job.

If it's not feasible to use 2 jobs, then you may be able to fine tune the compute resources, depending on your deployment environment, so as to compartmentalize the pod that runs each op.

If using Kubernetes this would be achievable now using the k8s_job_executor (more information in the documentation here).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by biancarosa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area: ops/graphs/jobs Related to Dagster ops, graphs and jobs
2 participants