# glance.task_cancellation_tracker module

glance.task_cancellation_tracker.cancel_operation(operation_id)

  Mark an operation as canceled by writing to the lock file if it exists.

glance.task_cancellation_tracker.get_data_dir()

  Return the filesystem store data directory from config.

glance.task_cancellation_tracker.is_canceled(operation_id)

  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-')

  Construct the file path for a given operation ID.

glance.task_cancellation_tracker.register_operation(operation_id)

  Register a new operation by creating a lock file.

glance.task_cancellation_tracker.signal_finished(operation_id)

  Remove the lock file to signal that the operation is canceled.

this page last updated: 2026-03-18 20:42:57

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug