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

[FR]: Add wait for an arbitrary state during the watch for job/job run/deployment request #756

Open
tanyakoganoracle opened this issue Apr 5, 2024 · 0 comments
Labels
ack acknowledged enhancement New feature or request

Comments

@tanyakoganoracle
Copy link
Member

Willingness to contribute

Yes. I can contribute this feature independently.

Proposal Summary

Add wait for an arbitrary state during the watch:

Here is our code, with is very agly.

def run(self, display_name: str, env_vars: dict = None) -> DataScienceJobRun:
job_run = (self._oci_instance.
run(name=display_name, env_var=env_vars))
job_run.TERMINAL_STATES += [JobRun.LIFECYCLE_STATE_IN_PROGRESS]
job_run.watch()
job_run.TERMINAL_STATES.remove(JobRun.LIFECYCLE_STATE_IN_PROGRESS)
return job_run

Motivation

Our project needs the run/delete to be blocking and having the busy waiting loop in our code not idela

Details

No response

@mrDzurb mrDzurb added enhancement New feature or request ack acknowledged labels May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack acknowledged enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants