An Hoang
07/20/2021, 1:26 PM./test_prefect
is created but nothing is outputted. Here's my very simple code:
## test_prefect.py
result = LocalResult(dir="./test_prefect")
@task(target="func_task_target.txt", checkpoint=True, result = result)
def test(val):
return val
with Flow("simple_test",result=result) as test_flow:
result = test(99)
test_flow.run()
I did set PREFECT__FLOWS__CHECKPOINTING=true
before doing python test_prefect.py
Kevin Kho
LocalResult
takes in an absolute path. Could you try that?An Hoang
07/20/2021, 1:37 PMKevin Kho
Kevin Kho
An Hoang
07/20/2021, 2:04 PM0.15.1
. When I do result.write()
it works, I thought it might have been a permission thing cause i'm ssh-ing into a server. Also did prefect run
. No idea why it doesn't workKevin Kho
An Hoang
07/20/2021, 2:18 PMpython test_prefect.py
with test_flow.run()
in test_prefect.py
creates the folder but not the file
• prefect run -p test_prefect.py -n "simple_test"
creates the folder but not the file.
• both prefect run -n simple_test --execute
(cloud backend) and prefect run -n simple_test
(cloud backend with agent registered) creates the file!Kevin Kho
prefect run -p test_prefect.py -n "simple_test"
and prefect run -p test_prefect.py
with the copy of the code you posted and both created a file for me on 0.15.1 🤔Kevin Kho
An Hoang
07/20/2021, 2:35 PMLSB Version: core-9.20170808ubuntu1-noarch:printing-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
Kevin Kho