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]: Option to flter job/job runs by name (preferable regexp) #754

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

Comments

@tanyakoganoracle
Copy link
Member

Willingness to contribute

Yes. I would be willing to contribute this feature with guidance from the oracle-ads team.

Proposal Summary

Maybe you want to add filter job/job runs by name too, i.e.:

def list_runs_with_state(self, lifecycle_state: str) -> list[DataScienceJobRun]:
runs = self._oci_instance.run_list(lifecycle_state=lifecycle_state)
user_job_runs = list(filter(lambda j: j.name.startswith(self._config.user_prefix), runs))
return user_job_runs

(preferable regexp)

Motivation

We filter our jobs/jobruns by name to separate the runs

Why is it currently difficult to achieve this use case?

It is not, difficult but not fully follows the SOLID principals

Details

No response

@mrDzurb mrDzurb added ack acknowledged enhancement New feature or request 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