build: Add missing Celery task decorators, and add CI check for it (#33154)
This commit is contained in:
@@ -6,6 +6,7 @@ import logging
|
||||
|
||||
from celery import shared_task
|
||||
from celery_utils.logged_task import LoggedTask
|
||||
from edx_django_utils.monitoring import set_code_owner_attribute
|
||||
|
||||
from .data import CLIPBOARD_PURPOSE
|
||||
from .models import StagedContent
|
||||
@@ -14,6 +15,7 @@ log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@shared_task(base=LoggedTask)
|
||||
@set_code_owner_attribute
|
||||
def delete_expired_clipboards(staged_content_ids: list[int]):
|
||||
"""
|
||||
A Celery task to delete StagedContent clipboard entries that are no longer
|
||||
|
||||
Reference in New Issue
Block a user