David Porter 39357940ed fix: test coverage: add invariants for every schedulev2 state transition (#11769)
## Context:

We've seen several problems in the SchedulesV2 where we have failed to
catch genuine problems where we should re-arm the next timer and
therefore the schedule gets 'stuck' (in the sense that it's performed an
invalid state transition and now cannot continue.

We've done a lot of fancy exploration to try and solve for this and I
hope we can land some of these. But in the mean-time I was pretty
frustrated that it's still very easy to make these mistakes (there's a
lot here I want to explore in testing, but it's very much a source of
sharp edges).

Concretely, I just asked the LLM to go try and find a low-effort way of
catching these and I'm pretty sure this is a success in that it's very
dumb: It just checks the state for 'stuck'ness on close. It's very
basic, but hopefully a starting-point to address the state-change
sharp-edges problem.


### LLM summary: 

## How did you test it?

- [x] added unit coverage
- [ ] functional suite not yet run

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-26 18:53:10 +00:00
2026-08-26 10:00:40 -07:00
2026-08-26 10:00:40 -07:00
2025-04-07 18:42:37 -07:00

Temporal—durable execution platform

GitHub Release GitHub License Code Coverage Community Go Report Card

Introduction   •   Getting Started   •   Contributing   •   Temporal Docs   •   Temporal 101

Introduction

Temporal is a durable execution platform that enables developers to build scalable applications without sacrificing productivity or reliability. The Temporal server executes units of application logic called Workflows in a resilient manner that automatically handles intermittent failures, and retries failed operations.

Temporal is a mature technology that originated as a fork of Uber's Cadence. It is developed by Temporal Technologies, a startup by the creators of Cadence.

image

Getting Started

Download and Start Temporal Server Locally

Execute the following commands to start a pre-built image along with all the dependencies.

brew install temporal
temporal server start-dev

Refer to Temporal CLI documentation for more installation options.

Run the Samples

Clone or download samples for Go or Java and run them with the local Temporal server. We have a number of HelloWorld type scenarios available, as well as more advanced ones. Note that the sets of samples are currently different between Go and Java.

Use CLI

Use Temporal CLI to interact with the running Temporal server.

temporal operator namespace list
temporal workflow list

Use Temporal Web UI

Try Temporal Web UI by opening http://localhost:8233 for viewing your sample workflows executing on Temporal.

Repository

This repository contains the source code of the Temporal server. To implement Workflows, Activities and Workers, use one of the supported languages.

Contributing

We'd love your help in making Temporal great.

Helpful links to get started:

License

MIT License

Languages
Go 99.5%
Shell 0.2%
PLpgSQL 0.2%
Makefile 0.1%