pcvs.orchestration package

Submodules

Module contents

class pcvs.orchestration.Orchestrator[source]

Bases: object

The job orchestrator, managing test processing through the whole test base.

Variables:
  • _conf – global configuration object

  • _pending_sets – started Sets not completed yet

  • _max_res – number of resources allowed to be used

  • _publisher – Result File Manager

  • _manager – job manager

  • _maxconcurrent – Max number of sets started at the same time.

add_new_job(job)[source]

Append a new job to be scheduled.

Parameters:

job (Test) – job to append

print_infos()[source]

display pre-run infos.

run(session)[source]

Start the orchestrator.

Parameters:

session (Session) – container owning the run.

start_new_runner()[source]

Start a new Runner thread & register comm queues.

start_run(the_session=None, restart=False)[source]

Start the orchestrator.

Parameters:
  • the_session (Session) – container owning the run.

  • restart (False for a brand new run.) – whether the run is starting from scratch

classmethod stop()[source]

Request runner threads to stop.

stop_runners()[source]

Stop all previously started runners.

Wait for their completion.

pcvs.orchestration.global_stop(e)[source]