А
Size: a a a
А
Y
VS
SN
SN
NK
AI
DT
DT
AI
DT
@shared_task
def test_task():
test_action.delay()
@shared_task
def test_action():
print('action!') # print is not executed
# I also tried to change the data, but it never happens too.
from django.contrib.auth import get_user_model
u = get_user_model().objects.get(id=1)
u.first_name = "testttt"
u.save()
DT
AI
DT
AI
AI
DT
RS
from celery.log import get_task_loggerЗакинь логгер инфо в начало последней таски и посмотри, отображается ли она в логах вообще
logger = get_task_logger(__name__)
logger.info('test')
AI
from celery.log import get_task_loggerЗакинь логгер инфо в начало последней таски и посмотри, отображается ли она в логах вообще
logger = get_task_logger(__name__)
logger.info('test')
AI