Class: ChronoForge::Executor::ExecutionTracker

Inherits:
Object
  • Object
show all
Defined in:
lib/chrono_forge/executor/execution_tracker.rb

Class Method Summary collapse

Class Method Details

.track_error(workflow, error) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/chrono_forge/executor/execution_tracker.rb', line 4

def self.track_error(workflow, error)
  # Create a detailed error log
  ErrorLog.create!(
    workflow: workflow,
    error_class: error.class.name,
    error_message: error.message,
    backtrace: error.backtrace.join("\n"),
    context: workflow.context
  )
end