fluiddyn.clusters.oar

OAR clusters (fluiddyn.clusters.oar)

Provides:

class fluiddyn.clusters.oar.ClusterOAR(check_scheduler=True, **kwargs)[source]

Bases: Cluster

Cluster using the OAR scheduler

check_oar()[source]

check if this script is run on a frontal with oar installed

stall(name_job, limit_number_jobs=1, time_check=30)[source]

Wait until job(s) completion.

Parameters:
name_run: str

Description of the job. Should be the same as in submit_script.

limit_number_jobs: int (default: 1)

Stall when the number of job is larger or equal to limit_number_jobs.

time_check: int

Time to sleep in seconds.

class fluiddyn.clusters.oar.ClusterOARGuix(check_scheduler=True, **kwargs)[source]

Bases: ClusterOAR

OAR cluster using the package manager Guix

fluiddyn.clusters.oar.get_job_id(name_job)[source]

Get the job id from the name job

Typical output of oarstat -u

Job id    S User     Duration   System message
--------- - -------- ---------- ------------------------------------------------
644829    F augier3p    0:05:08 R=4,W=0:10:0,J=B,N=fluidsim-restart_nx160_Rb20_N20,T=idempotent (Karma=0.038,quota_ok)
fluiddyn.clusters.oar.get_job_info(name_or_id)[source]

Get some information about a job

fluiddyn.clusters.oar.count_number_jobs(name_job)[source]

Get the number of jobs returned by oarstat -u

Functions

count_number_jobs(name_job)

Get the number of jobs returned by oarstat -u

get_job_id(name_job)

Get the job id from the name job

get_job_info(name_or_id)

Get some information about a job

Classes

ClusterOAR([check_scheduler])

Cluster using the OAR scheduler

ClusterOARGuix([check_scheduler])

OAR cluster using the package manager Guix