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

This commit is contained in:
2025-11-03 09:41:13 +01:00
parent 6a441e8c63
commit aac524dd36

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(":")