Execute dagstermill op in Python #8465
Unanswered
Replies: 1 comment
-
A dagstermill op will be executed in the notebook process which is separate from other op processes, so the error suggests that dagstermill ops need to be run inside a reconstructable job, because when the job is running cross process boundaries, Dagster needs to know how to reconstruct the job on the other side of the process boundary. To make it work, you can wrap the job with from dagster import job, reconstructable
def define_my_job():
@job
def my_job():
...
return my_job
reconstructable(define_my_job) This is also similar to the question asked in #8467 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi team, I am trying to execute a job that has notebook op using dagstermill. I can execute this from dagit successfully but using the python API, I am getting this error
dagstermill.errors.DagstermillError: Can't execute a dagstermill op from a job that is not reconstructable. Use the reconstructable() function if executing from python
what does this mean? Thank you a lotThe question was originally asked in Dagster Slack.
Beta Was this translation helpful? Give feedback.
All reactions