Skip to content

refactor(task-executor): improve task lifecycle management and timeout handling#1

Closed
fengcone wants to merge 1 commit intomainfrom
feature/public-task-timeout
Closed

refactor(task-executor): improve task lifecycle management and timeout handling#1
fengcone wants to merge 1 commit intomainfrom
feature/public-task-timeout

Conversation

@fengcone
Copy link
Owner

Summary

  • What is changing and why?

Testing

  • Not run (explain why)
  • Unit tests
  • Integration tests
  • e2e / manual verification

Breaking Changes

  • None
  • Yes (describe impact and migration path)

Checklist

  • Linked Issue or clearly described motivation
  • Added/updated docs (if needed)
  • Added/updated tests (if needed)
  • Security impact considered
  • Backward compatibility considered

…t handling

- Remove deprecated EnableContainerMode flag and related logic from config and executor initialization
- Add TimeoutSeconds field to Process spec for task timeout control
- Enhance process executor to detect task timeout and report Timeout state with detailed substatus
- Refactor task manager to maintain precise active task count via dynamic evaluation
- Implement asynchronous task stop on deletion and timeout to avoid reconcile loop blocking
- Update task status reconciliation with proper locking and persistent state updates
- Improve internal to API task conversion to reflect timeout termination and pod status accurately
- Add PodTemplateSpec support to tasks and propagate to API representations
- Expand tests to cover async stop on delete, timeout detection, active task counting, and status conversion
- Remove unused cached activeTasks counter and improve concurrency safety via stopping map
- Simplify container executor initialization by always creating executor without conditional flag
- Clean up logging and error handling in task lifecycle operations
@fengcone fengcone closed this Jan 21, 2026
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.

1 participant