Skip to content

Commit

Permalink
Refactor imports
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnStainsby committed Mar 12, 2024
1 parent 5580475 commit ebbe2f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from celery_worker.tasks import demodjango_task
from .check.check_http import HTTPCheck
from .models import ScheduledTask

from .util import render_connection_info

logger = logging.getLogger("django")
Expand Down Expand Up @@ -198,6 +198,7 @@ def get_result_from_celery_backend():


def celery_beat_check():
from .models import ScheduledTask
addon_type = ALL_CHECKS[BEAT]

try:
Expand Down
3 changes: 2 additions & 1 deletion celery_worker/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from celery import shared_task

from app.models import ScheduledTask

logger = logging.getLogger("django")

Expand All @@ -16,6 +15,8 @@ def demodjango_task(timestamp):

@shared_task(bind=True)
def demodjango_scheduled_task(self):
from app.models import ScheduledTask

timestamp = datetime.utcnow()

task = ScheduledTask()
Expand Down

0 comments on commit ebbe2f5

Please sign in to comment.