lib/openc3/microservices/timeline_microservice.rb in openc3-5.0.11 vs lib/openc3/microservices/timeline_microservice.rb in openc3-5.1.0

- old
+ new

@@ -14,10 +14,13 @@ # GNU Affero General Public License for more details. # Modified by OpenC3, Inc. # All changes Copyright 2022, OpenC3, Inc. # All Rights Reserved +# +# This file may also be used under the terms of a commercial license +# if purchased from OpenC3, Inc. require 'openc3/utilities/authentication' require 'openc3/microservices/microservice' require 'openc3/models/activity_model' require 'openc3/models/notification_model' @@ -95,10 +98,10 @@ 'scope' => @scope, 'environment' => activity.data['environment'], 'timeline' => @timeline_name, 'id' => activity.start }) - hostname = ENV['OPENC3_SCRIPT_HOSTNAME'] || 'openc3-script-runner-api' + hostname = ENV['OPENC3_SCRIPT_HOSTNAME'] || 'openc3-cosmos-script-runner-api' response = Net::HTTP.new(hostname, 2902).request(request) raise "failed to call #{hostname}, for script: #{activity.data['script']}, response code: #{response.code}" if response.code != '200' activity.commit(status: 'completed', message: "#{activity.data['script']} => #{response.body}", fulfillment: true) rescue StandardError => e