Class: Tasker::Orchestration::TaskFinalizer::BlockageChecker
- Inherits:
-
Object
- Object
- Tasker::Orchestration::TaskFinalizer::BlockageChecker
- Defined in:
- lib/tasker/orchestration/task_finalizer.rb
Overview
Service class to check task blockage by errors Uses function-based implementation for reliable performance
Class Method Summary collapse
-
.blocked_by_errors?(task) ⇒ Boolean
Check if the task is blocked by errors.
Class Method Details
.blocked_by_errors?(task) ⇒ Boolean
Check if the task is blocked by errors
190 191 192 193 194 195 196 197 198 |
# File 'lib/tasker/orchestration/task_finalizer.rb', line 190 def blocked_by_errors?(task) context = ContextManager.get_task_execution_context(task.task_id) # If no context is available, the task has no steps or doesn't exist # In either case, it's not blocked by errors return false unless context context.execution_status == Constants::TaskExecution::ExecutionStatus::BLOCKED_BY_FAILURES end |