Store sentry events for sync_all_to_runner_management
This commit is contained in:
@ -179,6 +179,7 @@ class ExecutionEnvironmentsController < ApplicationController
|
|||||||
success << true
|
success << true
|
||||||
rescue Runner::Error => e
|
rescue Runner::Error => e
|
||||||
Rails.logger.debug { "Runner error while getting all execution environments: #{e.message}" }
|
Rails.logger.debug { "Runner error while getting all execution environments: #{e.message}" }
|
||||||
|
Sentry.capture_exception(e)
|
||||||
environments_to_remove = []
|
environments_to_remove = []
|
||||||
success << false
|
success << false
|
||||||
end
|
end
|
||||||
@ -189,6 +190,7 @@ class ExecutionEnvironmentsController < ApplicationController
|
|||||||
Runner.strategy_class.sync_environment(execution_environment)
|
Runner.strategy_class.sync_environment(execution_environment)
|
||||||
rescue Runner::Error => e
|
rescue Runner::Error => e
|
||||||
Rails.logger.debug { "Runner error while synchronizing execution environment with id #{execution_environment.id}: #{e.message}" }
|
Rails.logger.debug { "Runner error while synchronizing execution environment with id #{execution_environment.id}: #{e.message}" }
|
||||||
|
Sentry.capture_exception(e)
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -198,6 +200,7 @@ class ExecutionEnvironmentsController < ApplicationController
|
|||||||
Runner.strategy_class.remove_environment(execution_environment)
|
Runner.strategy_class.remove_environment(execution_environment)
|
||||||
rescue Runner::Error => e
|
rescue Runner::Error => e
|
||||||
Rails.logger.debug { "Runner error while deleting execution environment with id #{execution_environment.id}: #{e.message}" }
|
Rails.logger.debug { "Runner error while deleting execution environment with id #{execution_environment.id}: #{e.message}" }
|
||||||
|
Sentry.capture_exception(e)
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user