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

consideration about job-specific back-off-based polling intervals ? #44

Open
dpastoor opened this issue Jan 19, 2024 · 1 comment
Open

Comments

@dpastoor
Copy link

Hi Daniel - just stumbled across your package - very nice! was hoping to find such an extension rather than write one from scratch :-)

in reading through the docs - one question I had for you was whether you've though much around job-specific polling intervals. In particular, thinking about how in the lifecycle of a job it would be of interest to balance keeping information fresh vs not hitting too hard on the slurmdb.

For example, a heuristic that might poll every 5-10 seconds for the first minute of a job, then back off with some sort of step function to a steady-state of every 300 seconds, which would better catch jobs that fail as they start but then as the job really gets going settle down?

Curious if this is something you've thought about much?

@Dando18
Copy link
Owner

Dando18 commented Jan 21, 2024

That would certainly be a useful feature! One potential issue is detecting when jobs start. If a job is pending in the queue then you'd have to poll it more frequently to detect when it starts. The polling heuristics would be less helpful if it missed the job start time by a significant margin.

It could still be useful on systems where jobs tend to run immediately or the refresh happens to catch the beginning of a job. The "refresh curve" could apply to the polling interval for pending jobs as well.

My next objective is to add better job array support, but I can look into this after that. Thanks for the suggestion :)

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