Add and configure Django Q
This commit is contained in:
parent
90808251d5
commit
d835645221
@ -35,6 +35,7 @@ INSTALLED_APPS = [
|
||||
"recurrence",
|
||||
"rest_framework",
|
||||
"rest_framework.authtoken",
|
||||
"django_q",
|
||||
"tasks.apps.TasksConfig",
|
||||
"rentals.apps.RentalsConfig",
|
||||
"membershipworks.apps.MembershipworksConfig",
|
||||
@ -114,3 +115,14 @@ REST_FRAMEWORK = {
|
||||
],
|
||||
"DEFAULT_VERSIONING_CLASS": "rest_framework.versioning.NamespaceVersioning",
|
||||
}
|
||||
|
||||
# Django Q
|
||||
Q_CLUSTER = {
|
||||
"name": "cmsmanage",
|
||||
"orm": "default",
|
||||
"retry": 360,
|
||||
"timeout": 300,
|
||||
"ALT_CLUSTERS": {
|
||||
"internal": {},
|
||||
},
|
||||
}
|
||||
|
30
pdm.lock
30
pdm.lock
@ -6,7 +6,7 @@ groups = ["default", "debug", "lint", "server", "typing"]
|
||||
cross_platform = true
|
||||
static_urls = false
|
||||
lock_version = "4.3"
|
||||
content_hash = "sha256:e49d03c05f090ee50f06df10b5419a0875036d7828ce2cb03edf57c34f2f4b14"
|
||||
content_hash = "sha256:c3404161808d837738b673f358588ae72e1b51f506b6f4e60d7ec8ef6b8e0e0c"
|
||||
|
||||
[[package]]
|
||||
name = "asgiref"
|
||||
@ -355,6 +355,34 @@ files = [
|
||||
{file = "django_markdownx-4.0.2-py2.py3-none-any.whl", hash = "sha256:2fed9b6bbac798a6c24ba30e17ad775fab44f94774c820abd87aabc751f50a7e"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "django-picklefield"
|
||||
version = "3.1"
|
||||
requires_python = ">=3"
|
||||
summary = "Pickled object field for Django"
|
||||
dependencies = [
|
||||
"Django>=3.2",
|
||||
]
|
||||
files = [
|
||||
{file = "django-picklefield-3.1.tar.gz", hash = "sha256:c786cbeda78d6def2b43bff4840d19787809c8909f7ad683961703060398d356"},
|
||||
{file = "django_picklefield-3.1-py3-none-any.whl", hash = "sha256:d77c504df7311e8ec14e8b779f10ca6fec74de6c7f8e2c136e1ef60cf955125d"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "django-q2"
|
||||
version = "1.5.5"
|
||||
requires_python = ">=3.8,<4"
|
||||
summary = "A multiprocessing distributed task queue for Django"
|
||||
dependencies = [
|
||||
"django-picklefield<4.0,>=3.1",
|
||||
"django>=3.2",
|
||||
"importlib-metadata>=3.6; python_version < \"3.10\"",
|
||||
]
|
||||
files = [
|
||||
{file = "django_q2-1.5.5-py3-none-any.whl", hash = "sha256:22c3e3c6133563790944bf1e5fc81b4cf9e5ff62fe415ea479bfcb9608305327"},
|
||||
{file = "django_q2-1.5.5.tar.gz", hash = "sha256:536327e36f47b723270a6624fa6a2ffaba522a6a8eebc51ab6e258257a4c93d8"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "django-recurrence"
|
||||
version = "1.11.1"
|
||||
|
@ -23,6 +23,7 @@ dependencies = [
|
||||
"requests~=2.31",
|
||||
"semver~=3.0",
|
||||
"djangorestframework~=3.14",
|
||||
"django-q2~=1.5",
|
||||
]
|
||||
requires-python = ">=3.9"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user