Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing NewTask deprecation plan #452

Merged
merged 2 commits into from
Sep 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions mlrun/model.py
Original file line number Diff line number Diff line change
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