Skip to content

Commit

Permalink
No need to start sending licence details task on app start up
Browse files Browse the repository at this point in the history
  • Loading branch information
saruniitr committed Jan 22, 2024
1 parent 46c77ea commit 2f8a4a8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mail/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@ def initialize_background_tasks(cls, **kwargs):
manage_inbox,
schedule_licence_usage_figures_for_lite_api,
)
from mail.celery_tasks import send_licence_details_to_hmrc

Task.objects.filter(queue=MANAGE_INBOX_TASK_QUEUE).delete()
Task.objects.filter(queue=LICENCE_DATA_TASK_QUEUE).delete()

if settings.BACKGROUND_TASK_ENABLED:
# Tasks common to ICMS and LITE/SPIRE
send_licence_details_to_hmrc.delay() # noqa

# LITE/SPIRE Tasks
if settings.CHIEF_SOURCE_SYSTEM == ChiefSystemEnum.SPIRE:
manage_inbox(repeat=settings.INBOX_POLL_INTERVAL, repeat_until=None) # noqa
Expand Down

0 comments on commit 2f8a4a8

Please sign in to comment.