Join Slack
Communities
Powered by
How do I set the state_handlers for a task if I am...
# ask-community
t
Tilak Maddy
12/14/2021, 10:30 AM
How do I set the state_handlers for a task if I am using a custom class that inherits from Task and I have my own
init
and run method ?
a
Anna Geller
12/14/2021, 10:38 AM
It should work the same way. Rather than attaching the state handler on a task decorator, you can set it when initializing the task
k
Kevin Kho
12/14/2021, 2:12 PM
Call the super init like
this
5
Views
Open in Slack
Previous
Next