glance/glance/common/scripts
Dan Smith e49f23c04d Heartbeat the actual work of the task
This introduces a CallbackIterator object that can sit in the data
pipeline when setting image data and provide periodic callbacks to
allow recording status, checking for cancellation, etc. If the
callback raises an exception, that will bubble up to the read
operation and cause an abort.

The heartbeat is timer-based, but cooperative, which means if the
data pipeline stalls, we will stop heartbeating. The goal is to
provide a callback about once per minute, although blocking on
the pipeline could make that less regular of course.

Change-Id: I136ef792d601326a67266e9ea9fcadd79ddba69e
2020-08-07 12:22:15 -07:00
..
api_image_import Rethinking filesystem access 2019-10-01 09:53:48 +00:00
image_import Heartbeat the actual work of the task 2020-08-07 12:22:15 -07:00
__init__.py Add import endpoint to initiate image import 2017-05-29 13:20:35 +01:00
utils.py Heartbeat the actual work of the task 2020-08-07 12:22:15 -07:00