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

Remove TaskProgressModel and store progress in TaskModel.progress_count #76

Merged
merged 1 commit into from
Feb 8, 2022

Conversation

jedie
Copy link
Collaborator

@jedie jedie commented Feb 3, 2022

Remove the TaskProgressModel and store progress information directly into TaskModel.
The existing TaskProgressModel progress information will be migrated into TaskModel ;)

Also store the current progress count into SignalInfoModel instance: So it is stored at which
progress the signal was generated.

Add TaskModel.cumulate_progress field that indicates if progress of the sub tasks be added up and
saved in the parent task.

Add TaskModel.finished field that indicates that this Task no longer waits or run.

Idea comes from: #57 (comment)

@codecov-commenter
Copy link

codecov-commenter commented Feb 3, 2022

Codecov Report

Merging #76 (828e260) into master (865155d) will decrease coverage by 0.54%.
The diff coverage is 84.70%.

❗ Current head 828e260 differs from pull request most recent head 0b92aac. Consider uploading reports for the commit 0b92aac to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #76      +/-   ##
==========================================
- Coverage   83.69%   83.14%   -0.55%     
==========================================
  Files          35       39       +4     
  Lines         791      795       +4     
==========================================
- Hits          662      661       -1     
- Misses        129      134       +5     
Impacted Files Coverage Δ
huey_monitor/migrations/0007_data_migration.py 52.63% <52.63%> (ø)
huey_monitor/humanize.py 88.46% <75.00%> (-2.45%) ⬇️
huey_monitor/models.py 95.57% <89.47%> (+2.14%) ⬆️
huey_monitor/tasks.py 87.50% <95.45%> (+8.01%) ⬆️
huey_monitor/admin.py 76.92% <100.00%> (ø)
huey_monitor/constants.py 100.00% <100.00%> (ø)
huey_monitor/migrations/0006_add_progress_count.py 100.00% <100.00%> (ø)
...onitor/migrations/0008_delete_taskprogressmodel.py 100.00% <100.00%> (ø)
huey_monitor/tqdm.py 100.00% <100.00%> (ø)
huey_monitor_tests/tests/test_huey_monitor.py 100.00% <100.00%> (ø)
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 865155d...0b92aac. Read the comment docs.

@jedie jedie force-pushed the refactor-models branch 6 times, most recently from 8c753c5 to 828e260 Compare February 7, 2022 16:25
Remove the `TaskProgressModel` and store progress information directly into `TaskModel`.
The existing TaskProgressModel progress information will be migrated into `TaskModel` ;)

Also store the current progress count into `SignalInfoModel` instance: So it is stored at which
progress the signal was generated.

Add `TaskModel.cumulate_progress` field that indicates if progress of the sub tasks be added up and
saved in the parent task.

Add `TaskModel.finished` field that indicates that this Task no longer waits or run.

Idea comes from:
#57 (comment)
@jedie jedie changed the title WIP: Refactor models Remove TaskProgressModel and store progress in TaskModel.progress_count Feb 7, 2022
@phihag phihag merged commit e79d75d into master Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants