Celery
Integration with Celery.
Setup
Set up Celery project.
Configure pyot models and pipelines.
Import path is the path used as if the file/module is being imported using python syntax via import
, __import__
or importlib.import_module
Tasks
Celery does not support async functions, a util wrapper is provided async_to_sync
in pyot.utils.sync
to convert async functions into blocking functions.
Celery runs tasks in threads or processes, make sure to use resource managers for graceful handling of resources, refer to Cores -> Resources.
Last updated