<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/new-inngest-function-cancelled-event-tj8ftm7ct" -->

---
title: New inngest/function.cancelled event | daily.dev
description: Inngest introduced a new system event, inngest/function.cancelled, that fires when a function run is cancelled, allowing developers to write follow-up...
canonical: https://daily.dev/posts/new-inngest-function-cancelled-event-tj8ftm7ct
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: New inngest/function.cancelled event | daily.dev
og:description: Inngest introduced a new system event, inngest/function.cancelled, that fires when a function run is cancelled, allowing developers to write follow-up...
og:url: https://daily.dev/posts/new-inngest-function-cancelled-event-tj8ftm7ct
og:image: https://api.daily.dev/og/posts/tJ8fTm7ct.png
og:image:alt: New inngest/function.cancelled event
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# New inngest/function.cancelled event

**[Inngest Blog](https://daily.dev/sources/inngest)** · 1 min read · 0 upvotes · 0 comments

## Summary

Inngest introduced a new system event, inngest/function.cancelled, that fires when a function run is cancelled, allowing developers to write follow-up functions that react to cancellations and perform cleanup gracefully. Documentation includes an example for cleanup after cancellation and a reference for the new system event.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.inngest.com/changelog/2024-11-25-function-cancelled-event>

## Questions this post answers

### How can I run cleanup code after an Inngest function run is cancelled?

Inngest now emits a system event called inngest/function.cancelled whenever a function run is cancelled. You can write a separate function that triggers on this event to handle cleanup tasks gracefully, such as releasing resources or updating state, instead of leaving cancelled runs unhandled.

_daily.dev surfaces workflow orchestration updates for developers building resilient event-driven systems._

## Similar posts on daily.dev

- [Automating Complex Workflow in Your Next.js App with Inngest](https://daily.dev/posts/automating-complex-workflow-in-your-next-js-app-with-inngest-z21aksfdw) · Telerik · 2 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#inngest](https://daily.dev/tags/inngest), [#workflow-orchestration](https://daily.dev/tags/workflow-orchestration)

[View this post on daily.dev](https://daily.dev/posts/new-inngest-function-cancelled-event-tj8ftm7ct)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"New inngest/function.cancelled event","url":"https://daily.dev/posts/new-inngest-function-cancelled-event-tj8ftm7ct","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/new-inngest-function-cancelled-event-tj8ftm7ct"},"datePublished":"2026-09-13T19:57:15.278Z","dateModified":"2026-10-15T02:22:43.545Z","description":"Inngest introduced a new system event, inngest/function.cancelled, that fires when a function run is cancelled, allowing developers to write follow-up...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e43a189677a1feb586640c738c3ad07d?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e43a189677a1feb586640c738c3ad07d?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Inngest Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Inngest Blog","logo":"https://media.daily.dev/image/upload/s--ieZKUa5y--/c_limit,w_256/f_auto,q_auto/v1789329423/logos/inngest?_a=BAMAMicg0","url":"https://daily.dev/sources/inngest"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/new-inngest-function-cancelled-event-tj8ftm7ct","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"architecture,inngest,workflow-orchestration","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Inngest Blog","item":"https://daily.dev/sources/inngest"},{"@type":"ListItem","position":3,"name":"New inngest/function.cancelled event"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/new-inngest-function-cancelled-event-tj8ftm7ct#faq","mainEntity":[{"@type":"Question","name":"How can I run cleanup code after an Inngest function run is cancelled?","acceptedAnswer":{"@type":"Answer","text":"Inngest now emits a system event called inngest/function.cancelled whenever a function run is cancelled. You can write a separate function that triggers on this event to handle cleanup tasks gracefully, such as releasing resources or updating state, instead of leaving cancelled runs unhandled. daily.dev surfaces workflow orchestration updates for developers building resilient event-driven systems."}}]}
```

