diff --git a/bin/run_brick.rb b/bin/run_brick.rb index a8933bec0..f85721f8b 100755 --- a/bin/run_brick.rb +++ b/bin/run_brick.rb @@ -13,6 +13,10 @@ brick_type = !ARGV.empty? ? ARGV[0] : DEFAULT_BRICK + +require '/usr/local/rvm/gems/jruby-9.4.1.0/gems/gooddata-dss-jdbc-0.2.8/lib/datawarehouse-jdbc-driver-3.5.6.jar' + + def get_brick_params(prefix) ENV.select { |k,| k.to_s.match(/^#{prefix}.*/) }.map { |k, v| [k.slice(prefix.length..-1), v] }.to_h end @@ -62,6 +66,12 @@ def handle_error(params, log, brick_type, error, error_message) params['GDC_EXECUTION_RESULT_LOG_PATH'] = execution_result_log_path log.info "action=#{brick_type}_execution status=start commit_hash=#{commit_hash} execution_id=#{execution_id}" + + # Start sleep to investigate issue no suitable driver found + log.info "action=#{brick_type}_execution status=start commit_hash=#{commit_hash} execution_id=#{execution_id} sleep=start" + sleep(60) + log.info "action=#{brick_type}_execution status=start commit_hash=#{commit_hash} execution_id=#{execution_id} sleep=end" + brick_pipeline.call(params) rescue GoodData::LcmExecutionError => lcm_error handle_error(execution_result_log_params, log, brick_type, lcm_error, lcm_error.summary_error) diff --git a/gooddata.gemspec b/gooddata.gemspec index 8c8516fa1..06349dbd7 100644 --- a/gooddata.gemspec +++ b/gooddata.gemspec @@ -74,6 +74,7 @@ if RUBY_VERSION >= '2.5' s.add_dependency 'parseconfig', '~> 1.0' s.add_dependency 'pmap', '~> 1.1' s.add_dependency 'sequel', '< 5.72.0' + s.add_dependency 'gooddata-dss-jdbc', '< 0.2.9' s.add_dependency 'remote_syslog_logger', '~> 1.0.3' s.add_dependency 'restforce', '>= 2.4' s.add_dependency 'rest-client', '~> 2.0'