mirror of
https://github.com/langgenius/dify.git
synced 2026-04-27 19:27:23 +08:00
change migration
This commit is contained in:
parent
952fb16b91
commit
35ec0d25e8
@ -32,7 +32,7 @@ if [[ "${MODE}" == "worker" ]]; then
|
|||||||
|
|
||||||
exec celery -A celery_entrypoint.celery worker -P ${CELERY_WORKER_CLASS:-gevent} $CONCURRENCY_OPTION \
|
exec celery -A celery_entrypoint.celery worker -P ${CELERY_WORKER_CLASS:-gevent} $CONCURRENCY_OPTION \
|
||||||
--max-tasks-per-child ${MAX_TASKS_PER_CHILD:-50} --loglevel ${LOG_LEVEL:-INFO} \
|
--max-tasks-per-child ${MAX_TASKS_PER_CHILD:-50} --loglevel ${LOG_LEVEL:-INFO} \
|
||||||
-Q ${CELERY_QUEUES:-dataset,mail,ops_trace,app_deletion,plugin,workflow_storage,conversation}
|
-Q ${CELERY_QUEUES:-dataset,pipeline,mail,ops_trace,app_deletion,plugin,workflow_storage,conversation}
|
||||||
|
|
||||||
elif [[ "${MODE}" == "beat" ]]; then
|
elif [[ "${MODE}" == "beat" ]]; then
|
||||||
exec celery -A app.celery beat --loglevel ${LOG_LEVEL:-INFO}
|
exec celery -A app.celery beat --loglevel ${LOG_LEVEL:-INFO}
|
||||||
|
|||||||
@ -20,7 +20,7 @@ from models.enums import WorkflowRunTriggeredFrom
|
|||||||
from models.workflow import Workflow, WorkflowNodeExecutionTriggeredFrom
|
from models.workflow import Workflow, WorkflowNodeExecutionTriggeredFrom
|
||||||
|
|
||||||
|
|
||||||
@shared_task(queue="dataset")
|
@shared_task(queue="pipeline")
|
||||||
def rag_pipeline_run_task(
|
def rag_pipeline_run_task(
|
||||||
pipeline_id: str,
|
pipeline_id: str,
|
||||||
application_generate_entity: dict,
|
application_generate_entity: dict,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user