Fix(ogagent): prevent duplicate trace creation by removing START_SCRIPT webhook for synchronous execution paths
ogagent/pipeline/head This commit looks good
Details
ogagent/pipeline/head This commit looks good
Details
parent
5b286e005c
commit
88297c60c3
|
|
@ -472,13 +472,6 @@ class OpenGnSysWorker(ServerWorker):
|
|||
|
||||
if post_params.get('client', 'false') == 'false':
|
||||
job_id = self.jobmgr.launch_job (script, False)
|
||||
try:
|
||||
self.REST.sendMessage('clients/status/webhook', {
|
||||
"nfn": "START_SCRIPT",
|
||||
"job_id": job_id
|
||||
})
|
||||
except Exception as e:
|
||||
logger.error(f"Failed to send START_SCRIPT webhook for job {job_id}: {e}")
|
||||
return {'op': 'launched', 'job_id': job_id}
|
||||
|
||||
else: ## post_params.get('client') is not 'false'
|
||||
|
|
|
|||
Loading…
Reference in New Issue