Open
Description
Hello,
here is my stack:
- python 3.12
- celery 5.4.0
- celery-once 3.0.1
- django 4.2.17 # if it does matter at all
Here is the basic task I made:
from time import sleep
from celery_once import QueueOnce # type: ignore
from background.celery import celery_app
@celery_app.task(base=QueueOnce)
def add(x: int, y: int) -> int:
sleep(20)
return x + y
When I go to shell by ./manage.py shell
and simply import the task, I get the following:
Python 3.12.8 (main, Dec 4 2024, 20:39:59) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from users.tasks import add
/usr/local/lib/python3.12/site-packages/celery_once/tasks.py:78: SyntaxWarning: invalid escape sequence '\*'
"""
Thanks!
Metadata
Assignees
Labels
No labels