Refactor ProgressRecorder for non-optional Celery usage and add doc strings #2139
No reviewers
Labels
No labels
Security
TeX
auto-update
board
done
board
ready
board
todo
check
delete-eslint-rc-js
check
update-builddeps-package-json
check
update-eslint-rc-js
check
update-gitignore
check
update-merge-request-template
check
update-prettier-ignore
check
update-pyproject-toml
check
update-renovate-json
check
update-tox-ini
part
backend
part
ci
part
docs
part
frontend
part
i18n
part
non-technical
part
packaging
prio
1
prio
2
prio
3
release-mr-5.x
size
large
size
medium
size
small
source
customer
source
customer::fsmw
source
customer::fss
source
customer::teckids
source
downstream
type
breaking
type
bug
type
feature
type
refactoring
workflow
blocked
workflow
confirmed
workflow
current-todo
workflow
discussing
workflow
new-app
workflow
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aleksis/AlekSIS-Core!2139
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/progress"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Close #377
@debdolph I added your branch for !2136 as target, so you can merge this into yours after @nik did a review.
Is this an API from the base progress recorder, or a new method invented by you?
If I remember correctly, this is a new method.
Hiding this decorator in the recorder class is a bit inobvious. The method should not do two things, decorating a function to be automatically
delayd on call and tracking its progress should be separated.Please find out. If it overrides an existing method, you should take care not to shadow its docstring.
It's definitely new.
k
Please use
functools.wraps.https://docs.python.org/3/library/functools.html#functools.wraps
I figure you have a dice with a float on each side?
changed this line in version 2 of the diff
changed this line in version 2 of the diff
changed this line in version 2 of the diff
added 7 commits
0bdf5664- Remove questionnable workaround for timing issuec81581cc- Simplify and rename task recording decoratora8400ce4- Update documenttion on ProgressRecorder0d35f974- Factor recorded_task out of class for brevityf2e29d79- Rework progress API to be more coherent with upstream and DRYaa176305- Add iterator interface to record progress from an iterable924b33a7- Remove unused importCompare with previous version
resolved all threads
mentioned in commit
d7b52b1bc8