{"record":{"id":"8e42e2c77d1423aa","repo":"influxdata/influxdb","slug":"request-trigger-execution-cancelled","errorCode":null,"errorMessage":"request trigger execution cancelled","messagePattern":"request trigger execution cancelled","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"warning","filePath":"influxdb3_processing_engine/src/worker/local.rs","lineNumber":532,"sourceCode":"                plugin_code_str.as_ref(),\n                schema,\n                query_endpoint,\n                write_endpoint,\n                logger,\n                &trigger_arguments,\n                query_params,\n                headers,\n                body,\n                py_cache,\n                plugin_root.as_deref(),\n                plugin_cancel,\n            )\n        });\n\n        let result = tokio::select! {\n            joined = plugin => joined?,\n            _ = cancel.cancelled() => {\n                return Err(anyhow!(\"request trigger execution cancelled\").into());\n            }\n        };\n\n        match result {\n            Ok((response_code, response_headers, response_body, plugin_return_state)) => {\n                self.handle_successful_run(plugin_return_state, &run_logger, \"request plugin\")\n                    .await;\n\n                Ok(TriggerResponse {\n                    status_code: response_code,\n                    headers: response_headers,\n                    body: response_body,\n                })\n            }\n            Err(error) => Err(PluginError::PluginExecutionError(error)),\n        }\n    }\n","sourceCodeStart":514,"sourceCodeEnd":550,"githubUrl":"https://github.com/influxdata/influxdb/blob/06200ef96ba82c5f6727e5038a83af8e722c6875/influxdb3_processing_engine/src/worker/local.rs#L514-L550","documentation":"`execute_request_once` runs the request-path plugin under a `tokio::select!` with a cancellation token; if the cancel token fires before the plugin future completes, this error is returned and the plugin result is discarded. It signals that the HTTP request trigger run was cancelled (typically timeout or shutdown) rather than that the plugin itself failed.","triggerScenarios":"A request trigger (`RequestPath` spec) plugin takes longer than the configured cancellation/timeout, or the node is shutting down while the plugin is still running.","commonSituations":"Plugins doing slow external HTTP calls or heavy writes; deadlock in plugin code; server shutdown during in-flight webhook-triggered plugin execution.","solutions":["Reduce plugin work or move slow external calls to async/background tasks inside the plugin.","Increase the request-plugin execution timeout if one is configured for the trigger.","Check server logs for shutdown/timeout around the same timestamp to identify what issued the cancellation.","Make the plugin idempotent so a cancelled run can be safely retried by the caller."],"exampleFix":"// plugin: before (blocking long call inside request trigger)\ndata = requests.post(HOOK_URL, json=payload, timeout=300)\n// after\ndata = requests.post(HOOK_URL, json=payload, timeout=10)","handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"// Caller/HTTP layer\nmatch execute_request_once(...).await {\n    Err(e) if e.to_string().contains(\"request trigger execution cancelled\") => {\n        // return 504 to client and/or retry the request trigger\n    }\n    other => other?,\n}","preventionTips":["Keep request plugins fast; do external calls with short timeouts","Configure timeouts larger than worst-case plugin runtime","Design plugins to be idempotent for safe retries","Watch shutdown logs to distinguish timeout from shutdown cancellation"],"tags":["cancellation","timeout","async","tokio","triggers"],"backgroundTag":"request-timeout","analyzedSha":"06200ef96ba82c5f6727e5038a83af8e722c6875","analyzedAt":"2026-09-19T12:55:30.003Z","contentChangedAt":"2026-09-19T12:55:30.003Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}