Skip to content

Commit 8ffeee4

Browse files
authored
fix: Add missing check_task_lock_and_exit function to conductor utils (#1704)
Resolves AttributeError in osism.tasks.conductor.sync_ironic task by adding the missing check_task_lock_and_exit function as a wrapper around the main utils implementation. AI-assisted: Claude Code Signed-off-by: Christian Berendt <[email protected]>
1 parent c1147fe commit 8ffeee4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

osism/tasks/conductor/utils.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,13 @@ def get_ironic_parameters():
232232
logger.warning(f"Could not get conductor Redfish address: {exc}")
233233

234234
return None
235+
236+
237+
def check_task_lock_and_exit():
238+
"""
239+
Check if tasks are locked and exit with error message if they are.
240+
Used by commands that should not run when tasks are locked.
241+
242+
This is a convenience wrapper around the main utils function.
243+
"""
244+
return utils.check_task_lock_and_exit()

0 commit comments

Comments
 (0)