Pavel Schudel
07/26/2023, 8:21 AM{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": false,
},
Guillaume Onfroy
07/26/2023, 8:26 AM{
"name": "Dagster",
"type": "python",
"request": "launch",
"console": "integratedTerminal",
"justMyCode": false,
"cwd": "${workspaceFolder}",
"module": "dagster",
"args": [
"dev"
]
}
You need to have selected the relevant Python venv on your VSCode window where you installed the Dagster module.Pavel Schudel
07/26/2023, 8:43 AM__name__ == "__main__"
. so the basic configuration should have worked. I created a test script with basic application
def get_random():
num = random.randint(1, 10)
return num
@op
def test_op1(context):
num = get_random()
return num
@op
def test_op2(context, num):
print(num)
@job
def test_job():
res = test_op1()
test_op2(res)
if __name__ == "__main__":
test_job.execute_in_process()
and suddenly everything started working again, in my main application also. very weird. and it’s not the first time it happened.