Skip to content

Reducing squeue polling per guidelines #15

@YodaEmbedding

Description

@YodaEmbedding

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions