从源代码安装是我的方法。每当我上传一个文件(.txt, .csv, .json),加载图标就会陷入循环。当我比较“doccano任务”(左侧)和“celery --app=config worker --loglevel=INFO --concurrency=1”(右侧)时,我能够确定问题所在。
[2023-04-13 00:30:47 +1000] [24488] [INFO] [django_drf_filepond.apps::ready::61] App init: no django-storages backend configured, using default (local) storage backend if set, otherwise you need to manage file storage independently of this app.
-------------- celery@Nikkis-Dell v5.2.7 (dawn-chorus)
--- ***** -----
-- ******* ---- Windows-10-10.0.22621-SP0 2023-04-13 00:30:48
* *** --- * ---
* ** ---------- [config]
* ** ---------- .> app: config:0x21377632410
* ** ---------- .> transport: sqla+sqlite:///C:\Users\Nikki\Desktop\Nikko\doccano\backend\db.sqlite3
* ** ---------- .> results:
* *** --- * --- .> concurrency: 1 (prefork)
-- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
--- ***** -----
-------------- [queues]
.> celery exchange=celery(direct) key=celery
[tasks]
. data_export.celery_tasks.export_dataset
. data_import.celery_tasks.import_dataset
. health_check.contrib.celery.tasks.add
[2023-04-13 00:30:48,312: INFO/MainProcess] Connected to sqla+sqlite:///C:\Users\Nikki\Desktop\Nikko\doccano\backend\db.sqlite3
[2023-04-13 00:30:48,391: INFO/MainProcess] celery@Nikkis-Dell ready.
[2023-04-13 00:30:48,597: INFO/SpawnPoolWorker-1] child process 13368 calling self.run()
[2023-04-13 00:30:49 +1000] [13368] [INFO] [django_drf_filepond.apps::ready::61] App init: no django-storages backend configured, using default (local) storage backend if set, otherwise you need to manage file storage independently of this app.`
### Your Environment
* Operating System: Windows 11/10
* Python Version Used: 3.11.3
* When you install doccano: Today
* How did you install doccano (Heroku button etc): Installation from source
3条答案
按热度按时间7nbnzgx91#
刚刚发现Celery 4.x及更高版本不再支持Windows。我不得不安装gevent包并运行Celery命令。现在我可以上传了,但它仍然显示没有配置Django后端。这有什么需要担心的吗?
toiithl62#
你是如何做到的?我安装了celery 3.1.25,但它不兼容。
sauutmhj3#
我也遇到了这个问题,我尝试在 poetry shell 中使用
pip install eventlet
安装eventlet
,然后celery --app=config worker --loglevel=INFO --concurrency=1 -P eventlet
这使得 celery 可用。