Skip to main content
Glama
kill_execution.rs559 B
use axum::{ extract::Path, response::IntoResponse, }; use dal::func::runner::FuncRunner; use si_events::FuncRunId; use crate::service::v2::admin::{ AdminAPIResult, AdminUserContext, }; pub async fn kill_execution( AdminUserContext(ctx): AdminUserContext, Path(func_run_id): Path<FuncRunId>, ) -> AdminAPIResult<impl IntoResponse> { FuncRunner::kill_execution(&ctx, func_run_id).await?; // We commit without a rebase here because we need to commit our func run table changes. ctx.commit_no_rebase().await?; Ok(()) }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server