Save limit per group/func/name (#12)

* feat: option to save tasks per group/func/name

* test: update tests for save limit

* fix: convert func when save-limit checking

when passed as function it needs to be converted to work

* Add warning if option is not valid

Co-authored-by: Noortheen Raja <jnoortheen@gmail.com>
This commit is contained in:
Stan Triepels
2022-10-15 01:56:41 +02:00
committed by GitHub
co-authored by Noortheen Raja
parent e3f959c258
commit 9ace854290
4 changed files with 80 additions and 25 deletions
+8
View File
@@ -142,6 +142,14 @@ Limits the amount of successful tasks saved to Django.
- Defaults to ``250``
- Failures are always saved.
save_limit_per
~~~~~~~~~~~~~
The above ``save_limit`` for successful tasks can be fine tuned per task type using
- Set to ``"group"`` to store the tasks per group
- Other possible values are ``"func"``, ``"name"``, ``None``
- Defaults to ``None``
guard_cycle
~~~~~~~~~~~