dataFrame = FeatureEngineering()
datasent = sendDataToOfflineStore(upstream_tasks=[dataFrame])
contents = task(upstream_tasks=[datasent],command='feast apply')
materialize = task(upstream_tasks=[contents] ,command='feast materialize 2021-11-08 2021-11-12')
featuresForTraining(upstream_tasks=[materialize])
The code above is my flow and when i register the flow i get the following error
Traceback (most recent call last):
File "/home/aqib/.local/lib/python3.8/site-packages/prefect/cli/build_register.py", line 134, in load_flows_from_script
namespace = runpy.run_path(abs_path, run_name="<flow>")
File "/usr/lib/python3.8/runpy.py", line 265, in run_path
return _run_module_code(code, init_globals, run_name,
File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/aqib/openaimpPrefect/flows/flow.py", line 51, in <module>
datasent = sendDataToOfflineStore(upstream_tasks=[dataFrame])
TypeError: sendDataToOfflineStore() got an unexpected keyword argument 'upstream_tasks'
previously when i did not use the upstream task below was my flow
dataFrame = FeatureEngineering()
datasent = sendDataToOfflineStore(dataFrame)
contents = task(command='feast apply')
materialize = task(command='feast materialize 2021-11-08 2021-11-12')
featuresForTraining()