Skip to content

Commit c4249fd

Browse files
Add SMART_EXTRACT vars to microservice runner
Populate SMART_EXTRACT_API_HOST and SMART_EXTRACT_REQUEST_TIMEOUT in the runner's variablesParameter from config('smart-extract.*'). This exposes the Smart Extract API host and request timeout settings to scripts executed by the microservice runner so they can call the Smart Extract service with the correct endpoint and timeout.
1 parent 4bd98ec commit c4249fd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ProcessMaker/ScriptRunners/ScriptMicroserviceRunner.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ private function getEnvironmentVariables(User $user)
136136
$variablesParameter['API_HOST'] = config('app.docker_host_url') . '/api/1.0';
137137
$variablesParameter['APP_URL'] = config('app.docker_host_url');
138138
$variablesParameter['API_SSL_VERIFY'] = (config('app.api_ssl_verify') ? '1' : '0');
139+
$variablesParameter['SMART_EXTRACT_API_HOST'] = config('smart-extract.api_host');
140+
$variablesParameter['SMART_EXTRACT_REQUEST_TIMEOUT'] = config('smart-extract.request_timeout');
139141
}
140142

141143
return $variablesParameter;

0 commit comments

Comments
 (0)