Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reducing squeue polling per guidelines #15

Open
YodaEmbedding opened this issue Feb 6, 2022 · 1 comment
Open

Reducing squeue polling per guidelines #15

YodaEmbedding opened this issue Feb 6, 2022 · 1 comment

Comments

@YodaEmbedding
Copy link

It looks like this polls squeue every second:

stui/stui/backend.py

Lines 157 to 165 in 978afa5

while True:
latest_jobs = self._get_jobs()
with self.lock:
self.latest_jobs = latest_jobs
if not self.requests.empty():
cmd = self.requests.get(block=False)
self._run_command(cmd)
sleep(1)

However, ComputeCanada guidelines say:

Do not run sq or squeue from a script or program at high frequency, e.g., every few seconds. Responding to squeue adds load to Slurm, and may interfere with its performance or correct operation. See Email notification below for a much better way to learn when your job starts or ends.

It might be good to add a way to reduce polling to every hour or disable it altogether.

@EvoLandEco
Copy link

@YodaEmbedding I created a PR to address this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants