cooldown of a minute is enough; cache outside cooldown (once cached, no cooldown check needed anymore)

This commit is contained in:
augustin_s committed 2025-11-03 09:41:13 +01:00
1 parent 6a441e8c63
commit aac524dd36
1 file changed
+1 -1
+1 -1
View File
@@ -30,8 +30,8 @@ def calc_custom(results, image, pixel_mask):
results.update(res)
@cooldown(30)
@functools.cache
@cooldown(60)
def load_custom(script):
beamline, name = script.split(":")