Changeset View
Changeset View
Standalone View
Standalone View
swh/scheduler/interface.py
Show First 20 Lines • Show All 327 Lines • ▼ Show 20 Lines | def get_task_runs(self, task_ids, limit=None): | ||||
"""Search task run for a task id""" | """Search task run for a task id""" | ||||
... | ... | ||||
@remote_api_endpoint("listers/get") | @remote_api_endpoint("listers/get") | ||||
def get_listers(self) -> List[Lister]: | def get_listers(self) -> List[Lister]: | ||||
"""Retrieve information about all listers from the database.""" | """Retrieve information about all listers from the database.""" | ||||
... | ... | ||||
@remote_api_endpoint("listers/get_by_id") | |||||
def get_listers_by_id(self, lister_ids: List[str]) -> List[Lister]: | |||||
"""Retrieve listers in batch, using their UUID""" | |||||
@remote_api_endpoint("lister/get") | @remote_api_endpoint("lister/get") | ||||
def get_lister( | def get_lister( | ||||
self, name: str, instance_name: Optional[str] = None | self, name: str, instance_name: Optional[str] = None | ||||
) -> Optional[Lister]: | ) -> Optional[Lister]: | ||||
"""Retrieve information about the given instance of the lister from the | """Retrieve information about the given instance of the lister from the | ||||
database. | database. | ||||
""" | """ | ||||
... | ... | ||||
▲ Show 20 Lines • Show All 159 Lines • Show Last 20 Lines |