Skip to main content

create_scheduler

Function
This function is defined in the scheduler module.
Factory function to create scheduler for different providers.

Signature

def create_scheduler(provider: str, config: Optional[Dict[str, Any]]) -> DeploymentScheduler

Parameters

provider
str
default:"'gcp'"
Deployment provider (“gcp”, “aws”, “azure”, etc.)
config
Optional
Optional configuration dict

Returns

Returns
DeploymentScheduler
Configured DeploymentScheduler instance

Uses

  • DeploymentScheduler
  • logger.warning

Source

View on GitHub

praisonai/scheduler.py at line 168

Background Tasks

Async Jobs