swh.scheduler package#
Subpackages#
- swh.scheduler.api package
- swh.scheduler.celery_backend package
- swh.scheduler.cli package
- Submodules
- swh.scheduler.cli.add_forge_now module
- swh.scheduler.cli.admin module
- swh.scheduler.cli.celery_monitor module
- swh.scheduler.cli.config module
- swh.scheduler.cli.journal module
- swh.scheduler.cli.origin module
- swh.scheduler.cli.origin_utils module
- swh.scheduler.cli.simulator module
- swh.scheduler.cli.task module
- swh.scheduler.cli.task_type module
- swh.scheduler.cli.utils module
- Module contents
- Submodules
- swh.scheduler.simulator package
- swh.scheduler.sql package
Submodules#
- swh.scheduler.backend module
adapt_LastVisitStatus()
format_query()
mutate_task_dict()
SchedulerBackend
SchedulerBackend.current_version
SchedulerBackend.get_db()
SchedulerBackend.put_db()
SchedulerBackend.task_type_keys
SchedulerBackend.create_task_type()
SchedulerBackend.get_task_type()
SchedulerBackend.get_task_types()
SchedulerBackend.get_listers()
SchedulerBackend.get_listers_by_id()
SchedulerBackend.get_lister()
SchedulerBackend.get_or_create_lister()
SchedulerBackend.update_lister()
SchedulerBackend.record_listed_origins()
SchedulerBackend.get_listed_origins()
SchedulerBackend.get_visit_types_for_listed_origins()
SchedulerBackend.grab_next_visits()
SchedulerBackend.task_keys
SchedulerBackend.task_create_keys
SchedulerBackend.create_tasks()
SchedulerBackend.set_status_tasks()
SchedulerBackend.disable_tasks()
SchedulerBackend.search_tasks()
SchedulerBackend.get_tasks()
SchedulerBackend.peek_ready_tasks()
SchedulerBackend.grab_ready_tasks()
SchedulerBackend.peek_ready_priority_tasks()
SchedulerBackend.grab_ready_priority_tasks()
SchedulerBackend.task_run_create_keys
SchedulerBackend.schedule_task_run()
SchedulerBackend.mass_schedule_task_runs()
SchedulerBackend.start_task_run()
SchedulerBackend.end_task_run()
SchedulerBackend.filter_task_to_archive()
SchedulerBackend.delete_archived_tasks()
SchedulerBackend.task_run_keys
SchedulerBackend.get_task_runs()
SchedulerBackend.origin_visit_stats_upsert()
SchedulerBackend.origin_visit_stats_get()
SchedulerBackend.visit_scheduler_queue_position_get()
SchedulerBackend.visit_scheduler_queue_position_set()
SchedulerBackend.update_metrics()
SchedulerBackend.get_metrics()
TemporarySchedulerBackend
- swh.scheduler.cli_utils module
- swh.scheduler.exc module
- swh.scheduler.interface module
PaginatedListedOriginList
SchedulerInterface
SchedulerInterface.create_task_type()
SchedulerInterface.get_task_type()
SchedulerInterface.get_task_types()
SchedulerInterface.create_tasks()
SchedulerInterface.set_status_tasks()
SchedulerInterface.disable_tasks()
SchedulerInterface.search_tasks()
SchedulerInterface.get_tasks()
SchedulerInterface.peek_ready_tasks()
SchedulerInterface.grab_ready_tasks()
SchedulerInterface.peek_ready_priority_tasks()
SchedulerInterface.grab_ready_priority_tasks()
SchedulerInterface.schedule_task_run()
SchedulerInterface.mass_schedule_task_runs()
SchedulerInterface.start_task_run()
SchedulerInterface.end_task_run()
SchedulerInterface.filter_task_to_archive()
SchedulerInterface.delete_archived_tasks()
SchedulerInterface.get_task_runs()
SchedulerInterface.get_listers()
SchedulerInterface.get_listers_by_id()
SchedulerInterface.get_lister()
SchedulerInterface.get_or_create_lister()
SchedulerInterface.update_lister()
SchedulerInterface.record_listed_origins()
SchedulerInterface.get_listed_origins()
SchedulerInterface.get_visit_types_for_listed_origins()
SchedulerInterface.grab_next_visits()
SchedulerInterface.origin_visit_stats_upsert()
SchedulerInterface.origin_visit_stats_get()
SchedulerInterface.visit_scheduler_queue_position_get()
SchedulerInterface.visit_scheduler_queue_position_set()
SchedulerInterface.update_metrics()
SchedulerInterface.get_metrics()
- swh.scheduler.journal_client module
- swh.scheduler.model module
check_timestamptz()
BaseSchedulerModel
Lister
ListedOrigin
LastVisitStatus
convert_last_visit_status()
OriginVisitStats
OriginVisitStats.url
OriginVisitStats.visit_type
OriginVisitStats.last_successful
OriginVisitStats.last_visit
OriginVisitStats.last_visit_status
OriginVisitStats.last_scheduled
OriginVisitStats.last_snapshot
OriginVisitStats.next_visit_queue_position
OriginVisitStats.next_position_offset
OriginVisitStats.successive_visits
OriginVisitStats.check_last_successful()
OriginVisitStats.check_last_visit()
SchedulerMetrics
TaskType
TaskArguments
Task
TaskRun
- swh.scheduler.pytest_plugin module
- swh.scheduler.task module
- swh.scheduler.utils module
Module contents#
- swh.scheduler.get_scheduler(cls: str, **kwargs) SchedulerInterface [source]#
Get a scheduler object of class cls with arguments **kwargs.
- Parameters:
cls – scheduler’s class
kwargs – arguments to pass to the class’ constructor
- Returns:
an instance of swh.scheduler.
- Raises:
ValueError if passed an unknown storage class. –