-
Hi, I would like to know hot to run asset_job from python script and command. I implemented the following script in And I don't know how to I tried running it by call When I executed I would like to run parallel dag execution by python script or command line.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hey @takerfume - try replacing dagster job execute --package-name tutorial -j images_job When you use |
Beta Was this translation helpful? Give feedback.
-
Reopened discussion because closed discussions don't appear in search results |
Beta Was this translation helpful? Give feedback.
Hey @takerfume - try replacing
-a
with-j
:When you use
-a
you're telling Dagster to execute the variableimages_job
. However, this variable refers to a job that's unresolved, because it's not inside aDefinitions
object with the assets it targets. By using-j
, you load the entire module including theDefinitions
object, and then execute "images_job" within that set of definitions, after it has been bound to the assets.