diff --git a/CHANGELOG.md b/CHANGELOG.md index ad881e2..d0093de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,10 @@ Section Order: +### Removed + +- Unexpected argument from task chain + ## [3.5.0] - 2026-01-23 > [!IMPORTANT] diff --git a/README.md b/README.md index 809b5bc..34a4526 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,12 @@ ______________________________________________________________________ > > Please make sure you meet all preconditions before you proceed. +> [!IMPORTANT] +> +> This app is utilising features that are only available in Alliance Auth >= 4.12.0. +> Please make sure to update your Alliance Auth instance before installing this app, +> otherwise, an update to Alliance Auth will be pulled in unsupervised. + - AA Sovereignty Timer is a plugin for Alliance Auth. If you don't have Alliance Auth running already, please install it first before proceeding. (see the official [AA installation guide](https://allianceauth.readthedocs.io/en/latest/installation/allianceauth.html) for details) diff --git a/sovtimer/tasks.py b/sovtimer/tasks.py index 40e78d1..496986f 100644 --- a/sovtimer/tasks.py +++ b/sovtimer/tasks.py @@ -73,8 +73,8 @@ def run_sov_campaign_updates() -> None: # Chain the update tasks for structures and campaigns, and execute them asynchronously chain( - update_sov_structures.s().set(priority=TASK_PRIORITY, once=TASK_ONCE_ARGS), - update_sov_campaigns.s().set(priority=TASK_PRIORITY, once=TASK_ONCE_ARGS), + update_sov_structures.s().set(priority=TASK_PRIORITY), + update_sov_campaigns.s().set(priority=TASK_PRIORITY), ).apply_async() diff --git a/sovtimer/tests/test_tasks.py b/sovtimer/tests/test_tasks.py index b541336..4601bf1 100644 --- a/sovtimer/tests/test_tasks.py +++ b/sovtimer/tests/test_tasks.py @@ -12,7 +12,6 @@ import sovtimer.tasks as tasks_module from sovtimer.models import Campaign, SovereigntyStructure from sovtimer.tasks import ( - TASK_ONCE_ARGS, TASK_PRIORITY, run_sov_campaign_updates, update_sov_campaigns, @@ -49,11 +48,9 @@ def test_updates_both_structures_and_campaigns( struct_kwargs = mock_update_structures.return_value.set.call_args.kwargs self.assertEqual(struct_kwargs.get("priority"), TASK_PRIORITY) - self.assertEqual(struct_kwargs.get("once"), TASK_ONCE_ARGS) camp_kwargs = mock_update_campaigns.return_value.set.call_args.kwargs self.assertEqual(camp_kwargs.get("priority"), TASK_PRIORITY) - self.assertEqual(camp_kwargs.get("once"), TASK_ONCE_ARGS) @patch("sovtimer.tasks.update_sov_structures.s") @patch("sovtimer.tasks.update_sov_campaigns.s")