Skip to content

Commit bfce48e

Browse files
author
Ask Solem
committed
PeriodicTasks to be removed in 1.6..
Use a PendingDeprecationWarning until 1.4 when this is raised to a DeprecationWarning.
1 parent bffe590 commit bfce48e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

celery/task/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
PERIODIC_DEPRECATION_TEXT = """\
2121
Periodic task classes has been deprecated and will be removed
22-
in celery v1.4.
22+
in celery v1.6.
2323
2424
Please use the CELERYBEAT_SCHEDULE setting instead:
2525
@@ -591,7 +591,7 @@ def __init__(self):
591591
"Periodic tasks must have a run_every attribute")
592592

593593
warnings.warn(PERIODIC_DEPRECATION_TEXT,
594-
DeprecationWarning)
594+
PendingDeprecationWarning)
595595
conf.CELERYBEAT_SCHEDULE[self.name] = {
596596
"name": self.name,
597597
"schedule": self.run_every,

0 commit comments

Comments
 (0)