wonsun06/03/2022, 1:31 AM
must be provided to show where flow
file is stored.` My flow code like this!
This python file name is 'flow_step1.py'. What's the problem?? Also, most weird thing is window(local) already run 'flow_step1' and create result files but prefect web UI can't detect this flow! I'm so confused because i don't understand exactly Flow, Register, Agent, Server, Local, Path.. in Prefect. Help me please.. 🤯
with Flow('flow_step1', storage=Local()) as flow: engine = create_engine('<mysql+pymysql://wonsun.jeong>:~~~~~~~~~~~~~~~', echo=True) connection = engine.connect() before = check_db() after = check_storage() answer = coin_inspection(after, before) with case(answer, False): new_datas = action_if_false() raw_extract = each_file_info.map(new_datas) final = each_ecg_meta.map(raw_extract) with case(answer, True): action_if_true() flow.storage = Local(stored_as_script=True) flow.register(project_name='try') flow.run() # flow.visualize()
, you need to point to where the file lives with
wonsun06/03/2022, 1:59 AM
wonsun06/03/2022, 5:37 AM