How to get which PeriodicTask is being called? #513
Unanswered
diogosilva30
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's assume I have a generic task like:
Now I create 2
PeriodicTask
objects that both call thegeneric_task
method above.How can I get which
PeriodicTask
object is invoking the method above?My current solution (seems kinda of a hack, not very clean):
PeriodicTask
with thename
also being passed as a positional argument:Is there any cleaner solution to this?
Beta Was this translation helpful? Give feedback.
All reactions