Constantin Teo
11/07/2024, 4:36 PMConstantin Teo
11/07/2024, 6:11 PMprefect deploy
will only show prefect.flow
decorated functions, but not `cf.flow`; I have to manually input the entrypoint for cf flows to be recognisedTahir Uddin Khan
11/11/2024, 10:41 PMConstantin Teo
11/11/2024, 10:41 PMNate
11/11/2024, 10:50 PM@cf.flow
def do_agent_stuff(): ...
@flow
def compose_cf_stuff():
# do normal python or call cf.flow code
do_agent_stuff()
if __name__ == "__main__":
compose_cf_stuff.from_source(...).deploy(...)
# or instead `prefect deploy this/file.py:compose_cf_stuff`
Αλκιβιάδης Σαββόπουλος
11/12/2024, 3:30 PM/opt/anaconda3/envs/cf_magnify/lib/python3.12/site-packages/prefect/utilities/importtools.py:511: RuntimeWarning: coroutine 'sync_compatible.<locals>.coroutine_wrapper.<locals>.ctx_call' was never awaited
logger.debug("Failed to compile: %s", e)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/opt/anaconda3/envs/cf_magnify/lib/python3.12/site-packages/prefect/flows.py:1742: RuntimeWarning: coroutine 'sync_compatible.<locals>.coroutine_wrapper.<locals>.ctx_call' was never awaited
if flow is None:
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/opt/anaconda3/envs/cf_magnify/lib/python3.12/site-packages/prefect/utilities/importtools.py:511: RuntimeWarning: coroutine 'sync_compatible.<locals>.coroutine_wrapper.<locals>.ctx_call' was never awaited
logger.debug("Failed to compile: %s", e)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/opt/anaconda3/envs/cf_magnify/lib/python3.12/site-packages/prefect/flows.py:1742: RuntimeWarning: coroutine 'sync_compatible.<locals>.coroutine_wrapper.<locals>.ctx_call' was never awaited
if flow is None:
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Despite that, miraculously, the flow gets deployed (@Nate even though it's a @cf.flow ), then I when I run the deployed flow, I get the ever frustrating:
Flow run infrastructure exited with non-zero status code:
Exited with non 0 code. (Error Code: 1)
My patience is getting tested every time I see this, as I'm honestly left without any information about how to solve my problems.
This may be caused by attempting to run an image with a misspecified platform or architecture.The same flow runs locally, as well as inside my local Docker container.Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by