bartongroup / slivka

http://bartongroup.github.io/slivka/
Apache License 2.0
7 stars 3 forks source link

Incorrect job status reported due to caching #116

Open warownia1 opened 2 years ago

warownia1 commented 2 years ago

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

warownia1 commented 2 years ago

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