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

Add error propagation to eager tasks #989

Merged
merged 1 commit into from
Feb 19, 2020
Merged

Conversation

OskarPersson
Copy link
Contributor

@OskarPersson OskarPersson commented Feb 19, 2020

This PR removes the customized version of DBTask.apply() and instead uses DBTask.success and DBTask.failure to update the database when eager tasks succeeds or fails.

By using the built-in DBTask.apply() we get proper task propagation that is better suited for testing

@OskarPersson OskarPersson changed the title Add eager task propagation Add error propagation to eager tasks Feb 19, 2020
@codecov
Copy link

codecov bot commented Feb 19, 2020

Codecov Report

Merging #989 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #989      +/-   ##
==========================================
- Coverage   62.81%   62.79%   -0.03%     
==========================================
  Files         212      212              
  Lines       20345    20334      -11     
  Branches     2453     2454       +1     
==========================================
- Hits        12780    12768      -12     
- Misses       7123     7124       +1     
  Partials      442      442              
Flag Coverage Δ
#backend 62.79% <100.00%> (-0.03%) ⬇️
Impacted Files Coverage Δ
ESSArch_Core/celery/backends/database.py 54.05% <0.00%> (-2.90%) ⬇️
ESSArch_Core/WorkflowEngine/dbtask.py 87.74% <0.00%> (-0.12%) ⬇️

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 d96236f...2183fce. Read the comment docs.

@OskarPersson OskarPersson marked this pull request as ready for review February 19, 2020 11:55
@OskarPersson OskarPersson merged commit e1b7d9b into master Feb 19, 2020
@OskarPersson OskarPersson deleted the eager-task-propagation branch February 19, 2020 13:06
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.

2 participants