idmtools_platform_local.local_platform module

class idmtools_platform_local.local_platform.LocalPlatform(*args, **kwargs)

Bases: idmtools.entities.iplatform.IPlatform

Represents the platform allowing to run simulations locally.

host_data_directory: str = '/home/runner/.local_data'
network: str = 'idmtools'
redis_image: str = 'redis:5.0.4-alpine'
redis_port: int = 6379
runtime: Optional[str] = None
redis_mem_limit: str = '128m'
redis_mem_reservation: str = '64m'
postgres_image: str = 'postgres:11.4'
postgres_mem_limit: str = '64m'
postgres_mem_reservation: str = '32m'
postgres_port: Optional[str] = 5432
workers_mem_limit: str = '16g'
workers_mem_reservation: str = '128m'
workers_image: str = None
workers_ui_port: int = 5000
heartbeat_timeout: int = 15
default_timeout: int = 45
launch_created_experiments_in_browser: bool = False
auto_remove_worker_containers: bool = True
cleanup(delete_data: bool = False, shallow_delete: bool = False, tear_down_brokers: bool = False)
post_setstate()

Function called after restoring the state if additional initialization is required