Hello! I am trying to figure out how to debug in a...
# ask-community
j
Hello! I am trying to figure out how to debug in an IDE (pycharm). I am using the cereals example and created a job to run all assets. I then try to run the job:
Copy code
all_assets_job = define_asset_job(name="all_assets_job")

defs = Definitions(
    assets=[cereals, nabisco_cereals, cereal_protein_fractions, highest_protein_nabisco_cereal],
    jobs=[all_assets_job],
)

if __name__ == "__main__":
    result = all_assets_job.execute_in_process()
This throws an error:
AttributeError: 'UnresolvedAssetJobDefinition' object has no attribute 'execute_in_process'
Is there a way to debug this while in an IDE, and is
all_assets_job.execute_in_process()
the correct way to run the assets?
I am able to run this job via
dagster dev
but I would ideally be able to debug in the IDE.
It seems like I could use
materialize([cereals, nabisco_cereals, cereal_protein_fractions, highest_protein_nabisco_cereal])
which is possibly the better way to go in this case. If there is a mix of ops and assets, I would still need to run a job right?
j
.resolve().execute_in_progress() but then we got stuck with other error
👀 1
j
Will take a look, thanks @Jean Gonzalez
s
@Jeff Nawrocki Hey Owen has answered on the link posted by Jean
🌈 2