Skip to content

Commit

Permalink
Added ability to cancel jobs for Orchestartor API prior 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
pfzim committed Dec 11, 2024
1 parent 04bcca6 commit 04b7c39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/Runbooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public function job_cancel($guid)

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $this->orchestrator_url.'/Jobs(guid'.$guid.')');
curl_setopt($ch, CURLOPT_URL, $this->orchestrator_url.'/Jobs(guid\''.$guid.'\')');
curl_setopt($ch, CURLOPT_POST, true);

if(defined('USE_GSSAPI') && USE_GSSAPI)
Expand All @@ -232,7 +232,7 @@ public function job_cancel($guid)

if(intval($result['http_code']) != 204)
{
log_file('ERROR: Stop job '.$this->orchestrator_url.'/Jobs(guid'.$guid.')'."\n".$output."\n\n");
log_file('ERROR: Stop job '.$this->orchestrator_url.'/Jobs(guid\''.$guid.'\')'."\n".$output."\n\n");
/*
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code></code>
Expand Down

0 comments on commit 04b7c39

Please sign in to comment.