Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbruinsslot committed Sep 19, 2024
1 parent 34e3922 commit 763c920
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion mula/scheduler/schedulers/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ def post_push(self, item: models.Task) -> models.Task:
# If the schedule has a cron schedule, we calculate the next run
# based on the cron schedule, otherwise we calculate the deadline
# based on the item.
deadline_at = None
if schedule_db.schedule is not None:
deadline_at = cron.next_run(schedule_db.schedule)
else:
Expand Down
1 change: 0 additions & 1 deletion mula/tests/factories/boefje.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from typing import Any

from factory import Factory, Faker, LazyFunction, fuzzy

from scheduler.models import Boefje, BoefjeMeta


Expand Down
1 change: 0 additions & 1 deletion mula/tests/factories/plugin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from factory import Factory, LazyFunction, Sequence, fuzzy

from scheduler.models import Plugin


Expand Down
2 changes: 1 addition & 1 deletion mula/tests/integration/test_boefje_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from types import SimpleNamespace
from unittest import mock

from scheduler import config, connectors, models, schedulers, storage
from structlog.testing import capture_logs

from scheduler import config, connectors, models, schedulers, storage
from tests.factories import (
BoefjeFactory,
BoefjeMetaFactory,
Expand Down
2 changes: 1 addition & 1 deletion mula/tests/integration/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from types import SimpleNamespace
from unittest import mock

from scheduler import config, models, queues, storage
from structlog.testing import capture_logs

from scheduler import config, models, queues, storage
from tests.mocks import item as mock_item
from tests.mocks import queue as mock_queue
from tests.mocks import scheduler as mock_scheduler
Expand Down

0 comments on commit 763c920

Please sign in to comment.