Skip to content

Conversation

@quickattach0-tech
Copy link
Owner

Description

Adds comprehensive async/await support to WorkflowManager and WorkflowExecutor for better scalability and non-blocking operations in larger applications.

Changes

  • ✅ Async methods for WorkflowManager:
    • StartStageAsync()
    • CompleteStageAsync()
    • AddLogAsync()
    • SaveWorkflowToFileAsync()
  • ✅ Async methods for WorkflowExecutor:
    • ExecuteDevelopmentWorkflowAsync()
    • ExecuteCIPipelineWorkflowAsync()
  • ✅ Uses Task.Delay() instead of Thread.Sleep() for better async patterns
  • ✅ 100% backward compatible - all sync methods remain

Benefits

  • Non-blocking workflow management
  • Better scalability for concurrent operations
  • Compatible with async/await patterns throughout codebase
  • Enables parallel workflow execution

Testing

  • ✅ Build succeeds (0 errors)
  • ✅ All existing tests pass
  • ✅ Backward compatible

Closes

Closes #2

- Add async versions of all public methods: StartStageAsync, CompleteStageAsync, AddLogAsync
- Add SaveWorkflowToFileAsync() for non-blocking file persistence
- Add ExecuteDevelopmentWorkflowAsync() for async workflow execution
- Add ExecuteCIPipelineWorkflowAsync() for async pipeline execution
- Use Task.Delay() instead of Thread.Sleep() in async methods for better scalability
- Fully backward compatible - all sync methods retained
- Enables non-blocking workflow management in larger applications
- Closes #2
@quickattach0-tech quickattach0-tech merged commit 6c897d0 into main Jan 25, 2026
4 checks passed
@quickattach0-tech quickattach0-tech deleted the feature/add-async-workflow-support branch January 25, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement: Add async/await support to WorkflowManager

2 participants