diff --git a/src/teamster/core/powerschool/sensors.py b/src/teamster/core/powerschool/sensors.py index a1b52ab5c9..a99ee682a4 100644 --- a/src/teamster/core/powerschool/sensors.py +++ b/src/teamster/core/powerschool/sensors.py @@ -103,10 +103,10 @@ def _sensor( # ) cursor[asset_key_string] = now.timestamp() + context.update_cursor(json.dumps(obj=cursor)) + finally: context.log.debug("Stopping SSH tunnel") ssh_tunnel.stop() - yield SensorResult(cursor=json.dumps(obj=cursor)) - return _sensor