Azure / Azure/durabletask

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

Open
#1,041 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.7k
Forks
335
Avg merge
2d 23h
Merged PRs (30d)
6

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.