swh.scheduler package

Subpackages:

Submodules:

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, either ‘local’ or ‘remote’

  • kwargs – arguments to pass to the class’ constructor

Returns

local: swh.scheduler.backend.SchedulerBackend remote: swh.scheduler.api.client.RemoteScheduler

Return type

an instance of swh.scheduler, either local or remote

Raises

ValueError if passed an unknown storage class.