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

Self variable - Issue #55 #60

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

danielmichalichyn
Copy link
Contributor

Hello @actumn, how are you?

Description

Regarding the issue #55, I've created this PR to suggest to you a simple way to achieve the result mentioned in the issue. A "self" variable within the task, so we can have information about task ID, and some other configurations made in the Celery Client. With this we can, from the worker, implement some others functions, like log the task ID, retry a task, and so on...

I'm open to suggestion and we can discuss if this is the better way.

@actumn
Copy link
Owner

actumn commented May 26, 2021

Hi, @danielmichalichyn!
Greatly appreciated for submitting this awesome PR!

A little request, it would be better if there are some use cases or descriptions to show how to use it with self.
Can you share what you've imagined?

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