完成视频复刻和优化
This commit is contained in:
@@ -9,3 +9,14 @@ app = Celery("airshelf")
|
||||
app.config_from_object("django.conf:settings", namespace="CELERY")
|
||||
app.autodiscover_tasks()
|
||||
|
||||
|
||||
from celery.signals import worker_ready # noqa: E402
|
||||
|
||||
|
||||
@worker_ready.connect
|
||||
def _kick_asset_review_drain(**kwargs):
|
||||
"""Worker 起来就自动转人脸审核,不用人去后台点送审。"""
|
||||
from apps.ai.tasks import drain_asset_reviews_task
|
||||
|
||||
drain_asset_reviews_task.apply_async(countdown=8)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user