Charles Zhan
08/16/2022, 9:41 PMrex
08/16/2022, 9:46 PMcontext.pdb.set_trace()
https://docs.dagster.io/_apidocs/execution#dagster.OpExecutionContext.pdbsandy
08/16/2022, 10:02 PMin_process_executor
to make all ops execute in a single threadCharles Zhan
08/16/2022, 10:04 PMCharles Zhan
08/16/2022, 10:40 PMdef op_1():
print("op_1")
def op_2():
print("op_2")
def simple_job():
op_1()
op_2()
simple_job()
in the plain python, from pycharm IDE, I can just toggle a breakpoint inside op_1 or op_2, and if i run it in the debug mode, the program will stop at the breakpoint inside the op_1 and op_2, as long as I have a breakpoint thereCharles Zhan
08/16/2022, 10:40 PMfrom dagster import op, job
@op
def op_1():
print("op_1")
@op
def op_2():
print("op_2")
@job
def simple_job():
op_1()
op_2()
simple_job.execute_in_process()
sandy
08/16/2022, 10:41 PMCharles Zhan
08/16/2022, 10:41 PMCharles Zhan
08/16/2022, 10:42 PMsandy
08/16/2022, 10:42 PMsandy
08/16/2022, 10:42 PMCharles Zhan
08/16/2022, 10:43 PMCharles Zhan
08/16/2022, 10:43 PMsandy
08/16/2022, 10:43 PMCharles Zhan
08/16/2022, 10:44 PMsandy
08/16/2022, 10:44 PMsandy
08/16/2022, 10:44 PMCharles Zhan
08/16/2022, 10:45 PMsandy
08/16/2022, 10:47 PMCharles Zhan
08/16/2022, 10:58 PMCharles Zhan
08/16/2022, 11:02 PMsandy
08/16/2022, 11:07 PM