Skip to content

Commit

Permalink
[Model Monitoring] Scheduled job's function url is moved to spec (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Eyal Salomon committed Sep 23, 2021
1 parent ea6ef9d commit cf4a31f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlrun/api/crud/model_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,11 +566,11 @@ def deploy_model_monitoring_batch_processing(
function_uri = function_uri.replace("db://", "")

task = mlrun.new_task(name="model-monitoring-batch", project=project)
task.spec.function = function_uri

data = {
"task": task.to_dict(),
"schedule": "0 */1 * * *",
"functionUrl": function_uri,
}

_submit_run(db_session=db_session, auth_info=auth_info, data=data)
Expand Down

0 comments on commit cf4a31f

Please sign in to comment.