Update jobs status from CLI or Client #1478
-
I was wondering if there is CLI option to "Update the Job status" similar to: I have found Usage: polyaxon ops update [OPTIONS]
Update run.
Uses /docs/core/cli/#caching
Examples:
$ polyaxon ops update --uid 8aac02e3a62a4f0aaa257c59da5eab80
--description="new description for my runs"
$ polyaxon ops update --project=cats-vs-dogs -uid 8aac02e3a62a4f0aaa257c59da5eab80 --tags="foo, bar" --name="unique-name"
Options:
-p, --project TEXT The project name, e.g. 'mnist' or 'acme/mnist'.
-uid, --uid TEXT The run uuid.
-n, --name TEXT Name of the run (optional).
--description TEXT Description of the run (optional).
--tags TEXT Tags of the run (comma separated values).
--help Show this message and exit. Long story short is that lot of my jobs finished working with status "Running". Don't know why, but in logs I see they finished. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The first thing is the check the release notes with this kind of problems, as the issue could have been solved in subsequent releases. Now going back to the solution, It's better to use client to iterate over the runs and mark them as finished: from polyaxon.client import ProjectClient
pclient = ProjectClient(project="PROJECT_NAME")
for r in pclient.list_runs(query="status: stopping").results:
print("cleaning {}".format(r.uuid)
RunClient("PROJECT_NAME", run_uuid=r.uuid).log_stopped(message="manual cleaning") |
Beta Was this translation helpful? Give feedback.
The first thing is the check the release notes with this kind of problems, as the issue could have been solved in subsequent releases.
Now going back to the solution, It's better to use client to iterate over the runs and mark them as finished: