accelerated-data-science icon indicating copy to clipboard operation
accelerated-data-science copied to clipboard

[FR]: Option to flter job/job runs by name (preferable regexp)

Open tanyakoganoracle opened this issue 1 year ago • 0 comments

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

tanyakoganoracle avatar Apr 05 '24 12:04 tanyakoganoracle