mirror of
https://github.com/fastapi-practices/fastapi_best_architecture.git
synced 2026-03-13 09:31:31 +08:00
* Add support for celery dynamic tasks * Update the celery conf * Update the celery task tables name * Refactor the celery task-related interfaces * Optimize auto-discovery tasks * Remove redundant config * Refine the business codes * Optimize crontab validation returns * Update dependencies in pyproject toml * Fix some bugs * Update dependencies * Update the version to 1.7.0 * Fix update and delete event
10 lines
317 B
Python
10 lines
317 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
from celery.backends.database.models import TaskExtended as TaskResult
|
|
|
|
OVERWRITE_CELERY_RESULT_TABLE_NAME = 'task_result'
|
|
OVERWRITE_CELERY_RESULT_GROUP_TABLE_NAME = 'task_group_result'
|
|
|
|
# 重写表名配置
|
|
TaskResult.configure(name=OVERWRITE_CELERY_RESULT_TABLE_NAME)
|