Files
Wu Clan 470cd9a9c2 adopt ruff formatter (#242)
* adopt ruff formatter

* Fix merge format
2023-11-22 19:09:08 +08:00

16 lines
298 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import uuid
sys.path.append('../../')
from backend.app.common.celery import celery_app # noqa: E402
@celery_app.task
def task_demo_async() -> str:
uid = uuid.uuid4().hex
print(f'异步任务 {uid} 执行成功')
return uid