Merge pull request #8568 from JakubOnderka/code-cleanup

fix: [internal] Throw exception if BackgroundJobsTool is not properly…
pull/8569/head
Jakub Onderka 2022-09-05 14:09:53 +02:00 committed by GitHub
commit 07c7698c2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -629,6 +629,10 @@ class BackgroundJobsTool
];
}
if (!isset($this->settings['supervisor_host'])) {
throw new RuntimeException("Required option `supervisor_host` for BackgroundJobsTool is not set.");
}
$host = null;
if (substr($this->settings['supervisor_host'], 0, 5) === 'unix:') {
if (!defined('CURLOPT_UNIX_SOCKET_PATH')) {

View File

@ -9116,5 +9116,5 @@
"uuid": false
}
},
"db_version": "94"
"db_version": "95"
}