Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update django-q with django-q2 #739

Draft
wants to merge 136 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
4d17cb9
Update configure.rst
LJlkdskdjflsa Sep 1, 2022
330a7d5
Fix typo configure.rst
GDay Sep 15, 2022
1114b51
update dependencies
GDay Sep 15, 2022
5e51a28
Update when action is triggered and update environment to .13 (.14 not
GDay Sep 15, 2022
318c4c6
add 3.10 test as well
GDay Sep 16, 2022
c17fcf2
avoid being recognized as 3.1 instead of 3.10
GDay Sep 16, 2022
fbb3333
Update dev dependencies
GDay Sep 16, 2022
0b9703f
Update dependencies and add support for python 3.10
GDay Sep 16, 2022
c4ebfc6
Show function name in log when running task (#3)
GDay Sep 16, 2022
89dd760
Codecov -> Coveralls (#4)
GDay Oct 8, 2022
f698792
Fix: readthedocs config file (#5)
GDay Oct 12, 2022
d32d3f5
Docs updates (#6)
GDay Oct 12, 2022
3f9c4ca
Feat: Release plan to pypi (#7)
GDay Oct 13, 2022
1edb426
Feat: Add Turkish translation (#8)
GDay Oct 13, 2022
803618d
Fix connection issues with CONN_MAX_AGE > 0 (#9)
GDay Oct 14, 2022
4aa6325
Replace use of eval() by ast.parse() + ast.literal_eval() (#10)
GDay Oct 14, 2022
e3f959c
Admin improvements (#11)
GDay Oct 14, 2022
9ace854
Save limit per group/func/name (#12)
GDay Oct 14, 2022
00fe611
Use logger.hasHandlers() to setup fallback logging (#13)
GDay Oct 15, 2022
ce98aaa
allow atomic on external db (#14)
GDay Oct 15, 2022
5539dd6
Fix install command and remove old warnings (#16)
GDay Oct 15, 2022
c59f036
Remove arrow dependency, update packages, set up testing with compose…
GDay Oct 19, 2022
596842e
chore: pip install support
jnoortheen Jul 5, 2022
64d73a7
feat: option to fail-on-timeout
jnoortheen Jul 8, 2022
8822e7d
Remove funding file, add docker/compose for development project and f…
GDay Oct 20, 2022
0aac4e7
Fix unclear error when function is not called correctly (#19)
GDay Oct 20, 2022
529a7de
Make blessed optional (#20)
GDay Oct 20, 2022
0ddef44
Bump version and docs fixes (#21)
GDay Oct 20, 2022
19d434e
Make redis dependency optional and update boto3 (#22)
GDay Oct 20, 2022
f62bd7b
Fix install docs: update q to q2 (#25)
GDay Oct 27, 2022
6f19b3d
Fix: func reference in admin (#28)
GDay Nov 5, 2022
167c348
Update changelog and readme (#29)
GDay Nov 5, 2022
f0cb10b
Add Python 3.11 support and tests, remove Python 3.7 (#31)
ac130kz Nov 7, 2022
1764c5c
Release 1.4.3 (#32)
GDay Nov 7, 2022
1720554
Fix baseconv/base62 deprecation warning for Django 5.x (#34)
GDay Nov 8, 2022
542e04d
Feat: Add biweekly and bimonthly and fix translations (#36)
GDay Nov 13, 2022
06ad615
Release 1.4.4 (#37)
GDay Nov 13, 2022
cf45830
[v1.4.4] add sudo to workflow
GDay Nov 13, 2022
b73fea4
Release v1.4.5
GDay Nov 13, 2022
3c0c327
Chore: Flake8, isort and Black (#40)
GDay Nov 16, 2022
2566955
Log exceptions with logger.exception (#42)
bokchan Nov 30, 2022
c1d4858
Release 1.4.6 (#43)
GDay Nov 30, 2022
134a54d
Chore: Fix badge and add download badge (#52)
GDay Dec 21, 2022
cf33891
Chore: Remove release drafter (#53)
GDay Dec 21, 2022
4d454e4
Fix: Daylight saving time issue with scheduler (#47)
GDay Dec 21, 2022
e78e473
Fix: handling exceptions inside job function (#51)
GDay Dec 21, 2022
cf33275
Release v1.4.7 (#54)
GDay Dec 21, 2022
ce81059
Fix: allow both ZoneInfo and Pytz depending on django version (#55)
GDay Dec 21, 2022
08baaab
Release v1.4.8
GDay Dec 21, 2022
b66dfbd
Fix DST timezone change (move from DST to normal jump) (#56)
GDay Dec 22, 2022
31e82ad
Release v1.4.9
GDay Dec 22, 2022
8cd1028
More explicit log messages in exception handling (#59)
msabatier Jan 10, 2023
865b1a5
Change task timeout logic to have now() as execution time (#58)
msabatier Jan 11, 2023
a013591
Add intended_date_kwarg field to Schedule (#62)
msabatier Jan 17, 2023
650c3b1
Fix use of database router for write queries and remove Conf.HAS_REPL…
msabatier Jan 18, 2023
17c1609
Add meaningfull process titles with currently running task name (#57)
msabatier Jan 26, 2023
264607f
Bump translations to latest changes (#63)
GDay Jan 26, 2023
2f3b0d0
Update all dependencies (#64)
GDay Jan 26, 2023
f9e0169
Adding translation mo files automatically on build (#65)
GDay Jan 26, 2023
25cd180
Release v1.4.10
GDay Jan 27, 2023
b2bcffb
Fix missing setup file for "No matching distribution" error (#69)
GDay Jan 30, 2023
b9bdd64
Remove custom build (revert to auto create setup file) (#70)
GDay Jan 30, 2023
01cb652
Release v1.4.11
GDay Jan 30, 2023
f5ecd33
Merge branch 'master' into error-on-timeout
jimjag Feb 17, 2023
d97dca5
Merge pull request #15 from django-q2/error-on-timeout
jimjag Feb 17, 2023
69a4034
Allow building docs all formats (#77)
GDay Feb 23, 2023
86467dc
Revert "Merge pull request #15 from django-q2/error-on-timeout"
GDay Mar 31, 2023
f8520c9
Remove version locking on poetry_core to fix regex error (#87)
GDay Mar 31, 2023
52c0421
Multiple queue, multiple cluster in one site (#71)
sinowood Apr 2, 2023
d13e9d3
Update dependencies (2023-04-02) (#88)
GDay Apr 2, 2023
38d4823
Release v1.5.0
GDay Apr 2, 2023
77821b1
Fix release workflow after name change
GDay Apr 2, 2023
322a53f
Release v1.5.1
GDay Apr 2, 2023
1f31725
Added Django 4.2 to the test matrix, fixed deprecation warning (#89)
maerteijn Apr 12, 2023
88bbfd8
Mention support for 4.2.x in docs
GDay Apr 12, 2023
fb96010
Release v1.5.2
GDay Apr 12, 2023
4ba9e03
Add post_spawn signal. (#93)
hooverdc May 14, 2023
227caa7
Post spawn docs (#95)
GDay May 14, 2023
630b3c6
Make processes identifiable with uuid4 (#91)
GDay May 14, 2023
f8321e7
Release v1.5.3
GDay May 14, 2023
23c06a3
Rerun successful tasks (#99)
scottpashley Jun 23, 2023
f8501bf
Release v1.5.4
GDay Jun 28, 2023
7fb7fca
Move worker, scheduler, pusher and monitor to separate files (#100)
GDay Jul 2, 2023
a08ef61
Remove deprecated usage pkg_resources (#103)
Lordshinjo Aug 1, 2023
d8cc0cc
Fix not picking up result from falsy result (#107)
GDay Sep 1, 2023
59d761b
Add documentation to migrate from django-q to django-q2 (#108)
GDay Sep 1, 2023
aa79a6e
Release v1.5.5
GDay Sep 1, 2023
960f72a
DOCS: Correct health check import in examples.rst (#110)
dustinblanchard Sep 5, 2023
68af2ae
Update Add-ons install command in install.rst (#115)
jrog612 Sep 14, 2023
939d0eb
Fix German Translation Typo (#124)
Grayknife Sep 30, 2023
bc50219
Update broken MongoClient link in Docs (#127)
Grayknife Oct 7, 2023
54ab399
Fix for "apps not ready" in Windows and Mac (#116)
GDay Oct 9, 2023
1d2a605
Add support for Django 5 (#120)
GDay Oct 12, 2023
750c654
Release v1.6.0
GDay Oct 12, 2023
0aaeb8d
Fix strict versions for python/django - poetry install error (#130)
GDay Oct 13, 2023
e3be22a
Release v1.6.1
GDay Oct 13, 2023
5031272
Specify build system in pyproject.toml (#131)
ptrcnull Oct 19, 2023
b3f4945
Use importerror for b62_decode and avoid deprecation notification (#134)
GDay Oct 26, 2023
098aa66
Update django.po (#138)
GDay Nov 4, 2023
13a382c
Fix for Negative Repeat Count in Scheduler (#101) (#146)
Bonekit Dec 14, 2023
1b638e5
Update release/test dependencies (#147)
GDay Dec 14, 2023
6265a54
Update docs to add cluster option to the async_task (#157)
GDay Feb 18, 2024
88430c9
Fix formatting issues in README.rst (#159)
joshuadavidthomas Feb 20, 2024
782b1de
Allow different broker on chain (#156)
GDay Mar 2, 2024
7add68f
Release v1.6.2
GDay Mar 5, 2024
5e4aa65
Remove support for Django 3.2 and 4.1 (#183)
GDay May 4, 2024
1d1d0a9
Fix max attempts for value 1 (#185)
GDay May 6, 2024
ad4d24e
Replace black/isort with ruff (#188)
GDay May 11, 2024
efa0d6d
ignore fuff formating
GDay May 11, 2024
cb25335
Fix repeating task after timeout (#184)
GDay Jun 23, 2024
5015d8e
fix: Oracle ORM backend compatibility #180 (#186)
jv3ga Aug 13, 2024
faaa57b
chore: Update CI for Django 4.2 Python 3.12 support (#208)
kimihito Aug 13, 2024
48123af
chore: Add Support Django 5.1 (#207)
kimihito Aug 13, 2024
af505e8
Call mark_process_dead on worker pid if prometheus_client is installe…
Ch00k Sep 3, 2024
2191897
Add example project (#215)
GDay Sep 8, 2024
69e794f
Add index on succeeded tasks (#164)
GDay Sep 8, 2024
923c5da
Release v1.7.0
GDay Sep 8, 2024
689c881
Release v1.7.1
GDay Sep 8, 2024
8f54e5d
Add twine check and fix readme (#216)
GDay Sep 9, 2024
2c456cd
Release v1.7.2
GDay Sep 9, 2024
337a578
Catch missing SEGALRM with AttributeError instead of ValueError (#223)
GDay Sep 22, 2024
8e403d0
Refactor timeout handling to handle AttributeError and ValueError for…
ethrgeist Oct 10, 2024
c1e00b0
Fix type check for args in scheduler.py E721 (#233)
ethrgeist Oct 10, 2024
c3b49cc
Only trigger prometheus if configured (#231)
paulocoutinhox Oct 11, 2024
dcfe5b6
Fix missing ack_id when finishing task (#224)
blockisec Oct 11, 2024
505eb8d
Release v1.7.3
GDay Oct 15, 2024
81058fc
Decrease the MAX_RSS set in test_cluster::test_max_rss (#240)
P-EB Oct 21, 2024
35c9110
Fix BROKER_CLASS monkeypatch in test_brokers (#239)
P-EB Oct 21, 2024
fb23b6b
Fix 'receive_message_wait_time_seconds' SQS broker management (#243)
amegianeg Nov 3, 2024
ccd760a
Release v1.7.4
GDay Nov 3, 2024
351bf66
Fix install path for CHANGELOG.md (#258)
mhaehnel Jan 2, 2025
ddc1aa2
perf: avoid checking success tasks when save limit is disabled (#255)
ahivert Jan 4, 2025
4049321
Release v1.7.5
GDay Jan 12, 2025
7e72b68
Make poetry version fixed in CI (#260)
GDay Jan 12, 2025
144536c
Release v1.7.6
GDay Jan 12, 2025
c464751
Delete deprecated imports and unwrapping (#261)
GDay Jan 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# flake8, black, isort
b1d000d007f3f77069719523268a0c6256dc0860
# move to ruff formatting/linting
ad4d24e17c9424b17cd8ae65c2def7ecc74e63c1
3 changes: 0 additions & 3 deletions .github/FUNDING.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/release-drafter.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
push:
tags:
- '*'

jobs:
build:
if: github.repository == 'django-q2/django-q2'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install gettext
python -m pip install pip setuptools django poetry
# compile messages to get .mo files
django-admin compilemessages
- name: Build and publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: poetry --build --username=__token__ --password=${{ secrets.PYPI_TOKEN }} publish
14 changes: 0 additions & 14 deletions .github/workflows/release_log.yml

This file was deleted.

81 changes: 63 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,45 @@
name: tests
on: [ push, pull_request ]
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Lint with ruff
run: |
pipx install ruff==0.4.10
ruff format . --check && ruff check .
- name: Check twine
run: |
python -m pip install twine poetry rstcheck
poetry build
rstcheck README.rst
twine check dist/*

test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.7, 3.8, 3.9 ]
django: [ "2.2", "3.2" ]
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
django: [ "4.2", "5.0", "5.1"]
exclude:
# django 5.1 does not support 3.8 and 3.9
- python-version: "3.8"
django: "5.1"
- python-version: "3.9"
django: "5.1"
# django 5.0 does not support 3.8 and 3.9
- python-version: "3.8"
django: "5.0"
- python-version: "3.9"
django: "5.0"

services:
disque:
image: efrecon/disque:1.0-rc1
Expand All @@ -32,29 +65,41 @@ jobs:
- 6379:6379
options: --entrypoint redis-server
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies with Django ${{ matrix.django }}
run: |
python -m pip install --upgrade pip
pip install poetry
poetry add "django==${{ matrix.django }}"
pip install poetry==1.8.5
poetry add "django==${{ matrix.django }}" --python=${{ matrix.python-version }}
poetry install -E testing
- name: Run Tests
run: |
poetry run pytest --cov=./django_q --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v1
env:
PYTHON: ${{ matrix.python-version }}
DJANGO: ${{ matrix.django }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: PYTHON, DJANGO
fail_ci_if_error: true
- name: Build docs
MONGO_HOST: "127.0.0.1"
REDIS_HOST: "127.0.0.1"
- name: Upload to coveralls
run: |
poetry run sphinx-build -b html -d docs/_build/doctrees -nW docs docs/_build/html
python -m pip install coveralls
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: python-${{ matrix.python-version }}-django-${{ matrix.django }}
COVERALLS_PARALLEL: true

finish:
needs: test
runs-on: ubuntu-latest
container: python:3.11-bookworm
steps:
- name: Upload to coveralls
run: |
python -m pip install --upgrade pip
python -m pip install coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-20.04
tools:
python: "3.9"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

formats: all

python:
install:
- requirements: docs/requirements.txt
6 changes: 0 additions & 6 deletions .readthedocs.yml

This file was deleted.

Loading
Loading