cooldown of a minute is enough; cache outside cooldown (once cached, no cooldown check needed anymore)
This commit is contained in:
1 parent
6a441e8c63
commit
aac524dd36
1 file changed
+1
-1
+1
-1
@@ -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(":")
|
||||
|
||||
|
||||
Reference in new issue
Block a user