Skip to content

Update jobs status from CLI or Client #1478

Discussion options

You must be logged in to vote

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")

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by polyaxon-team
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant