Increased default_stop_timeout on TileScanAPI

This commit is contained in:
Joel Collins 2020-07-22 16:11:26 +01:00
parent 5c99da264f
commit e110045dd3

View file

@ -310,6 +310,10 @@ class TileScanAPI(ActionView):
"resize": fields.Dict(missing=None), # TODO: Validate keys "resize": fields.Dict(missing=None), # TODO: Validate keys
} }
# Allow 10 seconds to stop upon DELETE request
# Gives fast-autofocus time to finish if it's running
default_stop_timeout = 10
def post(self, args): def post(self, args):
microscope = find_component("org.openflexure.microscope") microscope = find_component("org.openflexure.microscope")