temporalio / temporalio/features

[Feature Request] Schedule timers even if duration is <= 0

Open
#194 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
32
Forks
28
Avg merge
1d 9h
Merged PRs (30d)
7

Description

Our SDKs have inconsistent behavior when a timer with duration <= 0 is scheduled.

Ideally, the server should allow duration 0 to avoid special handling and mutation of user input on the SDK.
SDKs should ideally always schedule the timer to avoid triggering the non-determinism checker if timer duration is changed on replay, this can probably be achieved in Go and Java in a backwards compatible manner.

See also:
https://github.com/temporalio/sdk-java/issues/1579
https://github.com/temporalio/features/issues/378

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the SDK behaviors described in the issue, beginning with Python's temporalio/worker/_workflow_instance.py around line 1326, and review the linked Java and features issues. Define the compatibility requirements for zero and negative durations across the server and SDKs; done means the behavior is consistent without introducing replay non-determinism.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, java, python, typescript
Domain
distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.