Changeset View
Changeset View
Standalone View
Standalone View
swh/scheduler/interface.py
Show First 20 Lines • Show All 317 Lines • ▼ Show 20 Lines | def delete_archived_tasks(self, task_ids): | ||||
""" | """ | ||||
... | ... | ||||
@remote_api_endpoint("task_run/get") | @remote_api_endpoint("task_run/get") | ||||
def get_task_runs(self, task_ids, limit=None): | 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") | |||||
def get_listers(self) -> List[Lister]: | |||||
"""Retrieve information about all listers from the database. | |||||
""" | |||||
... | |||||
@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 122 Lines • Show Last 20 Lines |