Skip to content

Added support for replaced_task_nesting in chains#8501

Merged
Nusnus merged 3 commits intocelery:mainfrom
Katz-Consulting-Group:blm-274
Sep 16, 2023
Merged

Added support for replaced_task_nesting in chains#8501
Nusnus merged 3 commits intocelery:mainfrom
Katz-Consulting-Group:blm-274

Conversation

@Nusnus
Copy link
Member

@Nusnus Nusnus commented Sep 13, 2023

Adding support to replaced_task_nesting in chains allows for overcoming a very specific use case.
Overall, what it does is set all of the tasks of the chain with the correct replaced_task_nesting level, if the canvas is built from a chain that contains a replaced task that is also a chain (in which case the DAG gets broken as two tasks can be each other's parents which this fix allows overcoming).

TODO:
Maybe add some example doc with enhanced explanation although it would require a bit of effort so I'll get to it at a later date.

@Nusnus Nusnus added this to the 5.3.x milestone Sep 13, 2023
@Nusnus Nusnus requested a review from thedrow September 13, 2023 14:16
@Nusnus Nusnus self-assigned this Sep 13, 2023
@Nusnus Nusnus marked this pull request as ready for review September 13, 2023 14:17
@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01% 🎉

Comparison is base (6705945) 87.44% compared to head (177a1f7) 87.45%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8501      +/-   ##
==========================================
+ Coverage   87.44%   87.45%   +0.01%     
==========================================
  Files         148      148              
  Lines       18491    18496       +5     
  Branches     3156     3158       +2     
==========================================
+ Hits        16169    16176       +7     
+ Misses       2033     2032       -1     
+ Partials      289      288       -1     
Flag Coverage Δ
unittests 87.42% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
celery/app/task.py 95.35% <100.00%> (+0.55%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@auvipy auvipy self-requested a review September 13, 2023 15:02
@Nusnus Nusnus merged commit 7643e74 into celery:main Sep 16, 2023
@Nusnus Nusnus deleted the blm-274 branch September 16, 2023 16:52
@Nusnus
Copy link
Member Author

Nusnus commented Sep 16, 2023

Added message to PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants