Skip to content

Commit

Permalink
Changing NewTask deprecation plan (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedingber committed Sep 26, 2020
1 parent 293bc7b commit 0dd6ae8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mlrun/model.py
Expand Up @@ -441,7 +441,7 @@ def logs(self, watch=True, db=None):
return state


# TODO: remove in 0.7.0
# TODO: remove in 0.9.0
def NewTask(
name=None,
project=None,
Expand All @@ -462,8 +462,9 @@ def NewTask(
"""Creates a new task - see new_task
"""
warnings.warn(
"NewTask is deprecated and will be removed in 0.7.0, use new_task instead",
FutureWarning,
"NewTask will be deprecated in 0.7.0, and will be removed in 0.9.0, use new_task instead",
# TODO: change to FutureWarning in 0.7.0
PendingDeprecationWarning,
)
return new_task(
name,
Expand Down

0 comments on commit 0dd6ae8

Please sign in to comment.