generated from ApeWorX/project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: allow multiple handlers (#66)
* refactor: add TaskType enum to types * refactor!: use task collection by task type; use dynamic registration * refactor: use new task collections api for fetch task handlers * refactor!: use task type to differentiate tasks in middleware, not name * fix: typing bugs, not using Union for 3.8 support * fix: use task type to capture event logs * refactor: use defaultdict instead of custom collection type * refactor: use standardized labels, use task_name for task_id * refactor: remove `.task_name` from message labels * refactor: convert to TaskType for better processing * refactor: use StrEnum if available * docs: add note to deprecate in breaking change * refactor: make object type clearer when working with labels in middleware * refactor: use official backport * docs: update typing and add docs for dynamic broker task decorator fn * style: ignore mypy typing issues on <3.11 * refactor: avoid div/0 fault, fix duplicate log entry for results w/errs * refactor: rollback weird typing backport issue
- Loading branch information
Showing
5 changed files
with
132 additions
and
142 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
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.