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

Incorrect job status reported due to caching #116

Open
warownia1 opened this issue Dec 13, 2021 · 2 comments
Open

Incorrect job status reported due to caching #116

warownia1 opened this issue Dec 13, 2021 · 2 comments
Labels

Comments

@warownia1
Copy link
Collaborator

warownia1 commented Dec 13, 2021

For performance reasons, results of qstat for Grind Engine and squeue for Slurm are cached for 5 seconds. It is fine for existing jobs, however, whenever a new job or batch of jobs is submitted to the system, their entries are missing from the cache. This may make the scheduler assume that the job was completed or deleted even though it is an old cache result.

Possible solution include

  • invalidate caches every time new jobs are submitted
  • re-run qstat/squeue if the requested job id was not found (may result in unnecessary cache invalidations for completed jobs which disappeared from the jobs list)
@warownia1
Copy link
Collaborator Author

warownia1 commented Dec 13, 2021

cachetools library provides many caching tools including ttl cache with capability to invalidate cache on demand.

@warownia1 warownia1 added the issue label Apr 9, 2024
@warownia1 warownia1 moved this to Todo in Slivka 0.8 release Apr 9, 2024
@foreveremain foreveremain changed the title Incorrent job status reported due to caching Incorrect job status reported due to caching Apr 17, 2024
@warownia1 warownia1 moved this from Todo to In Progress in Slivka 0.8 release Apr 17, 2024
@warownia1 warownia1 moved this from In Progress to Ready to Merge in Slivka 0.8 release Apr 19, 2024
@warownia1
Copy link
Collaborator Author

Fixed by a41d060

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Ready to Merge
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant