FilteredJob Class

Mixin for adding methods to filter jobs

Inheritance
FilteredJob

Constructor

FilteredJob()

Methods

matches_filter

Checks if job (self) matches the given properties if any.

matches_filter

Checks if job (self) matches the given properties if any.

matches_filter(name_match: str = None, status: JobStatus | None = None, created_after: datetime | None = None) -> bool

Parameters

Name Description
name_match
str

regex expression for job name matching

default value: None
status

filter by job status

default value: None
created_after

filter jobs after time of job creation

default value: None

Returns

Type Description

Is filter match