waitForSlurmQ: Wait for the SLURM queue to empty

Description Usage Arguments Author(s)

Description

A function that waits for the SLURM queue to be smaller than a target number of runs. Typically used to wait for a run that your code has kicked off before parsing results. Will print messages with how many runs it waits for and for how long. The wait will time out after ( secsToWait * maxWaits ) seconds.

Usage

1
waitForSlurmQ(targetLength = 0, secsToWait = 30, maxWaits = 60)

Arguments

targetLength

How many runs to leave in the queue.Default is 0.

secsToWait

How many seconds to wait between parsing the queue. Default is 30.

maxWaits

Maximum number of times the wait should happen before timing out. Default is 20. waitForSlurmQ()

Author(s)

Henrik Bjugård Nyberg - henrik.b.nyberg@farmbio.uu.se


UppsalaHenrik/dismount documentation built on May 9, 2019, 9:40 p.m.