worker Package

worker Package

A worker is an instance, a physical machine. Initially

cluster Module

class transat.worker.cluster.Cluster(host, username)

Bases: transat.worker.worker.Worker

execute(task, nproc=0, queue=None)
get_pbs_string(name, nprocs, cmd)
qsub(cmd, args)
ssh(cmd, args)

worker Module

class transat.worker.worker.Worker(name='local')

Bases: object

execute(task)
prepare_simulation_files(cmd, project_name, wd)
remove_file(filename, wd)
run_cmd(cmd, wd)
transat.worker.worker.logger = <logging.Logger object>