|
@@ -114,6 +114,14 @@ pause_event.set() # Initially not paused
|
|
|
# Create an asyncio Lock for pattern execution
|
|
# Create an asyncio Lock for pattern execution
|
|
|
pattern_lock = asyncio.Lock()
|
|
pattern_lock = asyncio.Lock()
|
|
|
|
|
|
|
|
|
|
+def get_pattern_lock():
|
|
|
|
|
+ """Get the pattern lock for external modules to check lock state."""
|
|
|
|
|
+ return pattern_lock
|
|
|
|
|
+
|
|
|
|
|
+def get_pause_event():
|
|
|
|
|
+ """Get the pause event for external modules."""
|
|
|
|
|
+ return pause_event
|
|
|
|
|
+
|
|
|
# Progress update task
|
|
# Progress update task
|
|
|
progress_update_task = None
|
|
progress_update_task = None
|
|
|
|
|
|