Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

how to clean timer orchestration creates via CreateTimer() in durable task framework?

Open
#1,041 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp

Research direction

Start by tracing the CreateTimer, ContinueAsNew, and TerminateAsync orchestration APIs around the RunTask pattern shown in the issue. Determine whether the framework supports stopping after the current run and recreating the timer at a new time; done means documenting or defining the supported lifecycle and its behavior while a workflow is running.

Written by the indexing model from the issue text.

Description

We are using the timer function provided by DTF to support periodic workflow like below.

TResult result = default(TResult) !; try { result = await base.RunTask(context, input); } catch (Exception) { } finally { await context.CreateTimer(DateTime.UtcNow.Add(this.Periodicity), null !); context.ContinueAsNew(input); }

return result;

Now we want to clean up the orchestration scheduled by timer and create schedule at new timing. what is the best way to clean up this orchestration? for Using TerminateAsync , the workflow might be in run, so intention is to stop it after current run.

Dominant language
C#
Stars
1.7k
Forks
335
Avg merge
5d 3h
Merged PRs (30d)
8

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from Azure/durabletask

All issues in Azure/durabletask

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.