qgis_deployment_toolbelt.jobs.orchestrator module#

Read and validate scenario files.

Author: Julien Moura (https://github.com/guts, Oslandia)

class qgis_deployment_toolbelt.jobs.orchestrator.JobsOrchestrator#

Bases: object

Orchestrate jobs.

JOBS: tuple = (<class 'qgis_deployment_toolbelt.jobs.job_environment_variables.JobEnvironmentVariables'>, <class 'qgis_deployment_toolbelt.jobs.job_plugins_downloader.JobPluginsDownloader'>, <class 'qgis_deployment_toolbelt.jobs.job_plugins_synchronizer.JobPluginsSynchronizer'>, <class 'qgis_deployment_toolbelt.jobs.job_profiles_downloader.JobProfilesDownloader'>, <class 'qgis_deployment_toolbelt.jobs.job_profiles_synchronizer.JobProfilesSynchronizer'>, <class 'qgis_deployment_toolbelt.jobs.job_shortcuts.JobShortcutsManager'>, <class 'qgis_deployment_toolbelt.jobs.job_splash_screen.JobSplashScreenManager'>)#
PACKAGE_NAME: str = 'qgis_deployment_toolbelt.jobs'#
get_job_module_from_id(job_id: str) GenericJob | None#

Get job class from id.

Parameters:

job_id (str) – job identifier (as defined in scenario file)

Return object:

Job class

init_job_class_from_id(job_id: str, options: dict) GenericJob | None#

Get job class from id and instanciate it with options.

Parameters:
  • job_id (str) – job identifier (i.e. “qprofiles-manager”)

  • options (dict) – job options

Return object:

instanciated job class with options

property jobs_ids: tuple[str, ...]#

Returns available jobs ID.

Returns:

tuple of jobs ids

Return type:

tuple[str]