Open Sakura4036 opened 1 day ago
To resolve the "No module named 'schedule.clean_embedding_cache_task'" error when running a Celery worker in Dify version 0.9.2, follow these steps:
Verify Module Existence: Ensure that the schedule
directory exists and contains a file named clean_embedding_cache_task.py
. This file should define the task clean_embedding_cache_task
[1].
Check Python Path: Make sure that the directory containing the schedule
module is included in your Python path. You can check this by printing sys.path
in your script or by setting the PYTHONPATH
environment variable.
Correct Import Path: If the module is located in a different directory, adjust the import path accordingly in the Celery configuration.
Install Required Packages: If schedule
is part of an external package, ensure it is installed in your environment.
These steps should help you resolve the import error and get your Celery worker running correctly.
To continue talking to Dosu, mention @dosu.
I can not reproduce this on latest branch.
Self Checks
Dify version
0.9.2
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
update to dify v0.9.2
✔️ Expected Behavior
celery working
❌ Actual Behavior