Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Add runtime in success signal#9516

Open
sasirven wants to merge3 commits intocelery:main
base:main
Choose a base branch
Loading
fromsasirven:main
Open

Conversation

sasirven
Copy link

@sasirvensasirven commentedJan 23, 2025
edited
Loading

Note: Before submitting this pull request, please review ourcontributing
guidelines
.

Description

Send the task runtime to the success signal so users can access this information.
Linked to thisissue

Wonskcalb reacted with heart emoji
@@ -528,7 +528,7 @@ def trace_task(uuid, args, kwargs, request=None):
if task_on_success:
task_on_success(retval, uuid, args, kwargs)
if success_receivers:
send_success(sender=task, result=retval)
send_success(sender=task, result=retval, runtime=T)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

can you add a test case to verify this change?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Sorry if the test isn't perfect, I did my best to fit it in with everything else :D.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Hello, may I resolve this change request, or are further changes required?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

it seems good. but since we are on the middle of a new stable release, so thinking if we should add or hold this for a while

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Yeah, completely understand, no problem!

@codecovCodecov
Copy link

codecovbot commentedJan 28, 2025
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.24%. Comparing base(dbf2de8) to head(1c83051).

Additional details and impacted files
@@           Coverage Diff           @@##             main    #9516   +/-   ##=======================================  Coverage   78.24%   78.24%           =======================================  Files         153      153             Lines       19041    19041             Branches     2520     2520           =======================================  Hits        14899    14899             Misses       3856     3856             Partials      286      286
FlagCoverage Δ
unittests78.22% <100.00%> (ø)

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

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

@sasirvensasirvenforce-pushed themain branch 2 times, most recently from31a0b5b to50a34a7CompareJanuary 30, 2025 22:49
Copy link
Member

@auvipyauvipy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

we can consider it for v5.5 or defer to another release,@Nusnus what do you think?

Copy link
Member

@NusnusNusnus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

we can consider it for v5.5 or defer to another release,@Nusnus what do you think?

I agree with you@auvipy .

This is a cool PR but less fit for our current release phase.

I’d be happy to revisit it after the release.

@auvipyauvipy added this to the5.6.0 milestoneFeb 12, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@auvipyauvipyauvipy requested changes

@NusnusNusnusNusnus requested changes

Requested changes must be addressed to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
5.6.0
Development

Successfully merging this pull request may close these issues.

3 participants
@sasirven@Nusnus@auvipy

[8]ページ先頭

©2009-2025 Movatter.jp