Changeset View
Changeset View
Standalone View
Standalone View
swh/scheduler/interface.py
Show First 20 Lines • Show All 256 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("lister/get") | |||||
def get_lister( | |||||
self, name: str, instance_name: Optional[str] = None | |||||
) -> Optional[Lister]: | |||||
"""Retrieve information about the given instance of the lister from the | |||||
database. | |||||
""" | |||||
... | |||||
@remote_api_endpoint("lister/get_or_create") | @remote_api_endpoint("lister/get_or_create") | ||||
def get_or_create_lister( | def get_or_create_lister( | ||||
self, name: str, instance_name: Optional[str] = None | self, name: str, instance_name: Optional[str] = None | ||||
) -> Lister: | ) -> Lister: | ||||
"""Retrieve information about the given instance of the lister from the | """Retrieve information about the given instance of the lister from the | ||||
database, or create the entry if it did not exist. | database, or create the entry if it did not exist. | ||||
""" | """ | ||||
... | ... | ||||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |