High execution time on PUT /api/v2/integrations/actions/{actionId}/draft/function

Hi all,

Something is wrong with the update speed for Data Action functions. We’ve noticed a huge spike in EXECUTION TIME when pushing changes to the draft function via API. It’s taking almost 8 seconds for a simple update to return a 200 OK, which is totally killing the CI/CD pipeline speed.

The memory overhead for the runner isn’t the issue, but the response from the endpoint is just too high. We’re using the v2 API to update the function logic before publishing.

{
 "function": {
 "code": "const response = await axios.get('https://api.example.com/data'); return response.data;",
 "runtime": "nodejs18"
 }
}

The request is sent to PUT /api/v2/integrations/actions/{actionId}/draft/function. Normally this is fast, but now it’s lagging. It’s not a timeout, just very slow processing.

The TIMEOUT_SETTING in the action itself is fine, but the API call to actually save the draft is where the delay happens. It makes the whole DEPLOYMENT_CYCLE feel sluggish.

1 Like