Skip to content

Commit 9342ed5

Browse files
primoz-kOmer Katz
authored and
Omer Katz
committed
Update whatsnew-4.0 (#3909)
Issue: #3874
1 parent d34ee24 commit 9342ed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/whatsnew-4.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ these manually:
551551
class CustomTask(Task):
552552
def run(self):
553553
print('running')
554-
app.register_task(CustomTask())
554+
CustomTask = app.register_task(CustomTask())
555555
556556
The best practice is to use custom task classes only for overriding
557557
general behavior, and then using the task decorator to realize the task:

0 commit comments

Comments
 (0)