glance.task_cancellation_tracker module¶
- glance.task_cancellation_tracker.cancel_operation(operation_id)[source]¶
Mark an operation as canceled by writing to the lock file if it exists.
- glance.task_cancellation_tracker.get_data_dir()[source]¶
Return the filesystem store data directory from config.
- glance.task_cancellation_tracker.is_canceled(operation_id)[source]¶
Check if the operation has been canceled (file exists and is nonzero length).
- glance.task_cancellation_tracker.path_for_op(operation_id, prefix='running-task-')[source]¶
Construct the file path for a given operation ID.