backend_clients
Package¶
backend_client
¶
cluster_scheduler_client
¶
- class tvb.core.services.backend_clients.cluster_scheduler_client.ClusterSchedulerClient[source]¶
Bases:
BackendClient
Simple class, to mimic the same behavior we are expecting from StandAloneClient, but firing behind the cluster job scheduling process..
hpc_scheduler_client
¶
- class tvb.core.services.backend_clients.hpc_scheduler_client.HPCJobStatus(value)[source]¶
Bases:
Enum
An enumeration.
- FAILED = 'FAILED'¶
- QUEUED = 'QUEUED'¶
- READY = 'READY'¶
- STAGINGIN = 'STAGINGIN'¶
- STAGINGOUT = 'STAGINGOUT'¶
- SUCCESSFUL = 'SUCCESSFUL'¶
- class tvb.core.services.backend_clients.hpc_scheduler_client.HPCOperationThread(operation_id, *args, **kwargs)[source]¶
Bases:
Thread
- class tvb.core.services.backend_clients.hpc_scheduler_client.HPCSchedulerClient[source]¶
Bases:
BackendClient
Simple class, to mimic the same behavior we are expecting from StandAloneClient, but firing the operation on an HPC node. Define TVB_BIN_ENV_KEY and CSCS_LOGIN_TOKEN_ENV_KEY as environment variables before running on HPC.
- CONTAINER_INPUT_FOLDER = '/home/tvb_user/.data'¶
- CSCS_DATA_FOLDER = 'data'¶
- CSCS_LOGIN_TOKEN_ENV_KEY = 'CSCS_LOGIN_TOKEN'¶
- CSCS_PROJECT = 'CSCS_PROJECT'¶
- HOME_FOLDER_MOUNT = '/HOME_FOLDER'¶
- OUTPUT_FOLDER = 'output'¶
- TVB_BIN_ENV_KEY = 'TVB_BIN'¶
- static execute(operation_id: int, user_name_label: None, adapter_instance: None) None [source]¶
Call the correct system command to submit a job to HPC.
- static stage_out_to_operation_folder(working_dir: Storage, operation: Operation, simulator_gid: Union[uuid.UUID, str])[source]¶
- storage_interface = <tvb.storage.storage_interface.StorageInterface object>¶
- tvb.core.services.backend_clients.hpc_scheduler_client.get_op_thread(op_id: int) HPCOperationThread [source]¶
standalone_client
¶
- class tvb.core.services.backend_clients.standalone_client.OperationExecutor(op_id)[source]¶
Bases:
Thread
Thread in charge for starting an operation, used both on cluster and with stand-alone installations.
- class tvb.core.services.backend_clients.standalone_client.StandAloneClient[source]¶
Bases:
BackendClient
Instead of communicating with a back-end cluster, fire locally a new thread.