mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-21 18:22:27 +02:00
Compare commits
3 Commits
b02413c30c
...
49a271a99f
Author | SHA1 | Date | |
---|---|---|---|
|
49a271a99f | ||
|
af87da876b | ||
|
57b3841293 |
@ -25,13 +25,13 @@ exclude: |
|
|||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.11.0
|
rev: v0.11.4
|
||||||
hooks:
|
hooks:
|
||||||
# Run the linter, and only the linter
|
# Run the linter, and only the linter
|
||||||
- id: ruff
|
- id: ruff
|
||||||
|
|
||||||
- repo: https://github.com/adamchainz/django-upgrade
|
- repo: https://github.com/adamchainz/django-upgrade
|
||||||
rev: 1.23.1
|
rev: 1.24.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: django-upgrade
|
- id: django-upgrade
|
||||||
args: [--target-version=5.1]
|
args: [--target-version=5.1]
|
||||||
@ -73,7 +73,7 @@ repos:
|
|||||||
- id: check-executables-have-shebangs
|
- id: check-executables-have-shebangs
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
||||||
rev: 3.2.0
|
rev: 3.2.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: editorconfig-checker
|
- id: editorconfig-checker
|
||||||
- repo: https://github.com/igorshubovych/markdownlint-cli
|
- repo: https://github.com/igorshubovych/markdownlint-cli
|
||||||
@ -97,6 +97,6 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: tox-ini-fmt
|
- id: tox-ini-fmt
|
||||||
- repo: https://github.com/abravalheri/validate-pyproject
|
- repo: https://github.com/abravalheri/validate-pyproject
|
||||||
rev: v0.24
|
rev: v0.24.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: validate-pyproject
|
- id: validate-pyproject
|
||||||
|
@ -14,6 +14,10 @@ app = Celery('myauth')
|
|||||||
# Celery startup if it is unavailable.
|
# Celery startup if it is unavailable.
|
||||||
app.conf.broker_connection_retry_on_startup = True
|
app.conf.broker_connection_retry_on_startup = True
|
||||||
|
|
||||||
|
# Set a hard task execution time of 5 minutes before celery will cold restart
|
||||||
|
app.conf.worker_soft_shutdown_timeout = 300
|
||||||
|
app.conf.worker_enable_soft_shutdown_on_idle = True
|
||||||
|
|
||||||
# Using a string here means the worker don't have to serialize
|
# Using a string here means the worker don't have to serialize
|
||||||
# the configuration object to child processes.
|
# the configuration object to child processes.
|
||||||
app.config_from_object('django.conf:settings')
|
app.config_from_object('django.conf:settings')
|
||||||
|
@ -89,8 +89,8 @@ services:
|
|||||||
container_name: allianceauth_gunicorn
|
container_name: allianceauth_gunicorn
|
||||||
<<: [*allianceauth-base]
|
<<: [*allianceauth-base]
|
||||||
entrypoint: ["gunicorn", "myauth.wsgi", "--bind=0.0.0.0:8000", "--workers=3", "--timeout=120", "--max-requests=500", "--max-requests-jitter=50"]
|
entrypoint: ["gunicorn", "myauth.wsgi", "--bind=0.0.0.0:8000", "--workers=3", "--timeout=120", "--max-requests=500", "--max-requests-jitter=50"]
|
||||||
ports:
|
expose:
|
||||||
- 8000:8000
|
- 8000
|
||||||
|
|
||||||
allianceauth_beat:
|
allianceauth_beat:
|
||||||
container_name: allianceauth_worker_beat
|
container_name: allianceauth_worker_beat
|
||||||
|
@ -40,7 +40,7 @@ dynamic = [
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"bcrypt",
|
"bcrypt",
|
||||||
"beautifulsoup4",
|
"beautifulsoup4",
|
||||||
"celery>=5.4,<6",
|
"celery>=5.5,<6",
|
||||||
"celery-once>=3.0.1",
|
"celery-once>=3.0.1",
|
||||||
"django>=5.1,<5.2",
|
"django>=5.1,<5.2",
|
||||||
"django-bootstrap-form",
|
"django-bootstrap-form",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user