<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/singleton-functions-cancel-mode-ctlzzhjls" -->

---
title: Singleton Functions: Cancel Mode | daily.dev
description: Inngest's Singleton Functions feature now supports a new cancel mode alongside the existing skip mode. With mode set to cancel, a new function run cancels any...
canonical: https://daily.dev/posts/singleton-functions-cancel-mode-ctlzzhjls
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Singleton Functions: Cancel Mode | daily.dev
og:description: Inngest's Singleton Functions feature now supports a new cancel mode alongside the existing skip mode. With mode set to cancel, a new function run cancels any...
og:url: https://daily.dev/posts/singleton-functions-cancel-mode-ctlzzhjls
og:image: https://api.daily.dev/og/posts/ctLzzHJLS.png
og:image:alt: Singleton Functions: Cancel Mode
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.

# Singleton Functions: Cancel Mode

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

## Summary

Inngest's Singleton Functions feature now supports a new cancel mode alongside the existing skip mode. With mode set to cancel, a new function run cancels any existing run sharing the same key and starts fresh, ensuring only the most recent execution proceeds. This is useful for scenarios like syncing the latest user data, where in-progress work can be safely discarded in favor of processing newer data.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.inngest.com/changelog/2025-06-23-singleton-functions-cancel-mode>

## Questions this post answers

### How does the cancel mode work in Inngest singleton functions?

Setting mode to cancel in an Inngest singleton function configuration causes a new function run to cancel any existing run sharing the same key and start fresh, ensuring only the most recent execution proceeds. This complements the existing skip mode and suits cases like syncing the latest user data, where discarding in-progress work is safe.

_Developers wiring up event-driven data sync logic can track Inngest feature updates like this on daily.dev._

### What is the difference between skip mode and cancel mode in Inngest singleton functions?

Skip mode was the original behavior for Inngest singleton functions, while cancel mode is a new option that cancels any existing run with the same key and starts a fresh execution, rather than skipping the new run. Cancel mode fits scenarios where processing the latest data matters more than completing an older in-progress run.

_Anyone choosing between concurrency strategies for background jobs can follow tooling changes like this on daily.dev._

## Similar posts on daily.dev

- [Long running jobs shouldn't be first-come first-served](https://daily.dev/posts/long-running-jobs-shouldn-t-be-first-come-first-served-gu6nohphz) · Inngest Blog · 0 upvotes · 0 comments
- [The Queue is Durable. Your Worker is Not](https://daily.dev/posts/the-queue-is-durable-your-worker-is-not-ynde5ay4l) · Inngest Blog · 0 upvotes · 0 comments
- [All your workflows are about to be long running. Build for it.](https://daily.dev/posts/all-your-workflows-are-about-to-be-long-running-build-for-it--ff8epi154) · Inngest Blog · 0 upvotes · 0 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/singleton-functions-cancel-mode-ctlzzhjls)

```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":"Singleton Functions: Cancel Mode","url":"https://daily.dev/posts/singleton-functions-cancel-mode-ctlzzhjls","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/singleton-functions-cancel-mode-ctlzzhjls"},"datePublished":"2026-09-13T19:57:12.684Z","dateModified":"2026-10-15T02:22:36.419Z","description":"Inngest's Singleton Functions feature now supports a new cancel mode alongside the existing skip mode. With mode set to cancel, a new function run cancels any...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/89148dde9eb7505874e992b2fbe7c8e2?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/89148dde9eb7505874e992b2fbe7c8e2?_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/singleton-functions-cancel-mode-ctlzzhjls","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"inngest,javascript,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":"Singleton Functions: Cancel Mode"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/singleton-functions-cancel-mode-ctlzzhjls#faq","mainEntity":[{"@type":"Question","name":"How does the cancel mode work in Inngest singleton functions?","acceptedAnswer":{"@type":"Answer","text":"Setting mode to cancel in an Inngest singleton function configuration causes a new function run to cancel any existing run sharing the same key and start fresh, ensuring only the most recent execution proceeds. This complements the existing skip mode and suits cases like syncing the latest user data, where discarding in-progress work is safe. Developers wiring up event-driven data sync logic can track Inngest feature updates like this on daily.dev."}},{"@type":"Question","name":"What is the difference between skip mode and cancel mode in Inngest singleton functions?","acceptedAnswer":{"@type":"Answer","text":"Skip mode was the original behavior for Inngest singleton functions, while cancel mode is a new option that cancels any existing run with the same key and starts a fresh execution, rather than skipping the new run. Cancel mode fits scenarios where processing the latest data matters more than completing an older in-progress run. Anyone choosing between concurrency strategies for background jobs can follow tooling changes like this on daily.dev."}}]}
```

