cooldown of a minute is enough; cache outside cooldown (once cached, no cooldown check needed anymore)
This commit is contained in:
@@ -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