Skip to content

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

Open
@tanyakoganoracle

Description

@tanyakoganoracle

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ackacknowledgedenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions