wbtasks 1.56.0__tar.gz → 1.59.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {wbtasks-1.56.0 → wbtasks-1.59.9}/PKG-INFO +1 -1
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/factories.py +1 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/tasks.py +2 -1
- {wbtasks-1.56.0 → wbtasks-1.59.9}/.gitignore +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/pyproject.toml +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/__init__.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/admin.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/apps.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/filters.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/locale/de/LC_MESSAGES/django.mo +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/locale/de/LC_MESSAGES/django.po +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/locale/en/LC_MESSAGES/django.mo +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/locale/en/LC_MESSAGES/django.po +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/locale/fr/LC_MESSAGES/django.mo +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/locale/fr/LC_MESSAGES/django.po +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/migrations/0001_initial_squashed_squashed_0006_alter_task_assigned_to_alter_task_in_charge_and_more.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/migrations/__init__.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/models.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/serializers.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/tests/__init__.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/tests/conftest.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/tests/test_filters.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/tests/test_models.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/tests/test_serializers.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/tests/test_tasks.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/tests/tests.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/urls.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/viewsets/__init__.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/viewsets/buttons.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/viewsets/display.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/viewsets/menu.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/viewsets/titles.py +0 -0
- {wbtasks-1.56.0 → wbtasks-1.59.9}/wbtasks/viewsets/viewsets.py +0 -0
|
@@ -6,13 +6,14 @@ from celery import shared_task
|
|
|
6
6
|
from django.db.models import Q
|
|
7
7
|
from django.utils import timezone
|
|
8
8
|
from wbcore.contrib.notifications.dispatch import send_notification
|
|
9
|
+
from wbcore.workers import Queue
|
|
9
10
|
|
|
10
11
|
from wbtasks.models import Task
|
|
11
12
|
|
|
12
13
|
NOTIFY_DUE_TASKS_INTERVAL_MINUTES = 60
|
|
13
14
|
|
|
14
15
|
|
|
15
|
-
@shared_task
|
|
16
|
+
@shared_task(queue=Queue.DEFAULT.value)
|
|
16
17
|
def notify_due_tasks(now=None, notification=None):
|
|
17
18
|
if not now:
|
|
18
19
|
now = timezone.now()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|