From e110045dd3271f6ea73ab56c957b18458e62dba8 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Wed, 22 Jul 2020 16:11:26 +0100 Subject: [PATCH] Increased default_stop_timeout on TileScanAPI --- openflexure_microscope/api/default_extensions/scan.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openflexure_microscope/api/default_extensions/scan.py b/openflexure_microscope/api/default_extensions/scan.py index 4d461ffd..7d510549 100644 --- a/openflexure_microscope/api/default_extensions/scan.py +++ b/openflexure_microscope/api/default_extensions/scan.py @@ -310,6 +310,10 @@ class TileScanAPI(ActionView): "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): microscope = find_component("org.openflexure.microscope")