-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc90ef8
commit a5bb5c3
Showing
10 changed files
with
124 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY | ||
_commit: v2024.18 | ||
_commit: v2024.24 | ||
_src_path: gh:westerveltco/django-twc-package | ||
author_email: [email protected] | ||
author_name: Josh Thomas | ||
|
@@ -19,5 +19,6 @@ python_versions: | |
- '3.10' | ||
- '3.11' | ||
- '3.12' | ||
- '3.13' | ||
test_django_main: true | ||
versioning_scheme: SemVer |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,77 +18,86 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/ | |
|
||
## [Unreleased] | ||
|
||
### Added | ||
|
||
- Support for Python 3.13. | ||
|
||
### Changed | ||
|
||
- Bumped `django-twc-package` template version to 2024.24. | ||
- Refactored how app settings are accessed within library to use a frozen `dataclass`. | ||
|
||
## [0.3.2] | ||
|
||
### Added | ||
|
||
- Added a `py.typed` file for static type checkers. | ||
- Added a `py.typed` file for static type checkers. | ||
|
||
## [0.3.1] | ||
|
||
### Fixed | ||
|
||
- Correctly JSON serialize `Task` kwargs when going from the in-memory representation contained in the task registry to actual model instances in the database. First reported by [@joshuadavidthomas](https://github.com/joshuadavidthomas) in [#30](https://github.com/westerveltco/django-q-registry/issues/30). | ||
- Correctly JSON serialize `Task` kwargs when going from the in-memory representation contained in the task registry to actual model instances in the database. First reported by [@joshuadavidthomas](https://github.com/joshuadavidthomas) in [#30](https://github.com/westerveltco/django-q-registry/issues/30). | ||
|
||
## [0.3.0] | ||
|
||
### Changed | ||
|
||
- Now using v2024.18 of `django-twc-package`. | ||
- Now using v2024.18 of `django-twc-package`. | ||
|
||
### Removed | ||
|
||
- Dropped support for Django 3.2. | ||
- Dropped support for Django 3.2. | ||
|
||
## [0.2.1] | ||
|
||
### Added | ||
|
||
- Added a `TaskRegistry.created_tasks` attribute to store the `Task` instances created by the `TaskRegistry`. | ||
- Added a `TaskRegistry.created_tasks` attribute to store the `Task` instances created by the `TaskRegistry`. | ||
|
||
### Changed | ||
|
||
- Now using v2024.12 of `django-twc-package`. | ||
- Now using v2024.12 of `django-twc-package`. | ||
|
||
### Fixed | ||
|
||
- Fixed a bug in the `setup_periodic_tasks` management command where newly created tasks via `Task.objects.create_from_registry` were immediately deleted via `Task.objects.delete_dangling_objects`. Newly created tasks are now added to the `TaskRegistry.created_tasks` attribute and are only deleted if they are not in the `TaskRegistry.created_tasks` attribute. | ||
- Fixed a bug in the `setup_periodic_tasks` management command where newly created tasks via `Task.objects.create_from_registry` were immediately deleted via `Task.objects.delete_dangling_objects`. Newly created tasks are now added to the `TaskRegistry.created_tasks` attribute and are only deleted if they are not in the `TaskRegistry.created_tasks` attribute. | ||
|
||
## [0.2.0] | ||
|
||
### Added | ||
|
||
- Refactored the `django_q_registry.registry.Task` dataclass into a `django_q_registry.models.Task` Django model. This should make it more flexible and robust for registering tasks and the associated `django_q.models.Schedule` instances. | ||
- Refactored the `django_q_registry.registry.Task` dataclass into a `django_q_registry.models.Task` Django model. This should make it more flexible and robust for registering tasks and the associated `django_q.models.Schedule` instances. | ||
|
||
### Changed | ||
|
||
- Now using [`django-twc-package`](https://github.com/westerveltco/django-twc-package) template for repository and package structure. | ||
- The default for the `Q_REGISTRY["PERIOIDIC_TASK_SUFFIX"]` app setting has been changed from `"- CRON"` to `"- QREGISTRY"`. | ||
- All database logic has been moved from the `TaskRegistry` to the `setup_periodic_tasks` management command. | ||
- GitHub Actions `test` workflow now uses the output of `nox -l --json` to dynamically generate the test matrix. | ||
- Now using [`django-twc-package`](https://github.com/westerveltco/django-twc-package) template for repository and package structure. | ||
- The default for the `Q_REGISTRY["PERIOIDIC_TASK_SUFFIX"]` app setting has been changed from `"- CRON"` to `"- QREGISTRY"`. | ||
- All database logic has been moved from the `TaskRegistry` to the `setup_periodic_tasks` management command. | ||
- GitHub Actions `test` workflow now uses the output of `nox -l --json` to dynamically generate the test matrix. | ||
|
||
### Fixed | ||
|
||
- Fixed a bug in the hashing of a `Task` where the `hash` function was passed unhashable values (e.g. a `dict`). Thanks to [@Tobi-De](https://github.com/Tobi-De) for the bug report ([#6](https://github.com/westerveltco/django-q-registry/issues/6)). | ||
- Fixed a bug in the hashing of a `Task` where the `hash` function was passed unhashable values (e.g. a `dict`). Thanks to [@Tobi-De](https://github.com/Tobi-De) for the bug report ([#6](https://github.com/westerveltco/django-q-registry/issues/6)). | ||
|
||
## [0.1.0] | ||
|
||
Initial release! | ||
|
||
### Added | ||
|
||
- Initial documentation. | ||
- Initial tests. | ||
- Initial CI/CD (GitHub Actions). | ||
- A registry for Django Q2 periodic tasks. | ||
- `registry.register` function for registering periodic tasks with a convenience decorator `register_task`. | ||
- A `TASKS` setting for registering periodic tasks from Django settings. | ||
- Autodiscovery of periodic tasks from a Django project's `tasks.py` files. | ||
- A `setup_periodic_tasks` management command for setting up periodic tasks in the Django Q2 broker. | ||
- Initial documentation. | ||
- Initial tests. | ||
- Initial CI/CD (GitHub Actions). | ||
- A registry for Django Q2 periodic tasks. | ||
- `registry.register` function for registering periodic tasks with a convenience decorator `register_task`. | ||
- A `TASKS` setting for registering periodic tasks from Django settings. | ||
- Autodiscovery of periodic tasks from a Django project's `tasks.py` files. | ||
- A `setup_periodic_tasks` management command for setting up periodic tasks in the Django Q2 broker. | ||
|
||
### New Contributors | ||
|
||
- Josh Thomas <[email protected]> (maintainer) | ||
- Josh Thomas <[email protected]> (maintainer) | ||
|
||
[unreleased]: https://github.com/westerveltco/django-q-registry/compare/v0.3.2...HEAD | ||
[0.1.0]: https://github.com/westerveltco/django-q-registry/releases/tag/v0.1.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.