https://dagster.io/ logo
#ask-community
Title
# ask-community
w

Will Gunadi

03/31/2022, 5:18 PM
I just installed 0.14.6, and I ran python repository.py just to make sure that it's not hanging (a previous issue that @daniel helped me with). And guess what, somehow the @job decorator tries to actually run the job. I can assure you that this didn't happen with 0.14.1. What magic did you guys do here? And what for? :D
d

daniel

03/31/2022, 5:27 PM
I don't think the job decorator runs the job - certainly not intentionally, and we haven't gotten any other reports of it. Is it possible to share or DM your code?
w

Will Gunadi

04/04/2022, 8:46 PM
The oddest thing is that a print() inside a job is executed when I do python repository.py. I've been programming python for decades and I've never seen a print() inside a function getting executed without the function being called.
d

daniel

04/05/2022, 12:58 AM
What might be happening is your job function body may be written so that it is doing work other than calling op functions and setting up a DAG - the decorated job function does execute when the code is loaded, but only to create a graph of ops by invoking op functions
If it's possible to post an example of a job that isn't behaving the way you expect it to, we could take a look