temporalio / temporalio/temporal

Cron tailgate-like workflow triggering (start a workflow in some time after it completes and not according to cron schedule) [Java]

Open
#1,994 6 comments 0 reactions 1 assignee View on GitHub

@dnr is already working on this.

Since Sep 29, 2021.

CRON enhancement
Dominant language
Go
Stars
23.2k
Forks
1.9k
Avg merge
2d 8h
Merged PRs (30d)
228

Description

Is your feature request related to a problem? Please describe.
Currently there is no way to trigger a workflow in some time. There is support for cron workflows but if the workflow is taking up the whole time bracket then the workflow runs might be immediate.

Describe the solution you'd like
Let's consider a scenario of polling a lot of data from multiple data sources. I start a cron workflow that is supposed to run with a 10 minute interval. Let's say the workflow started it's execution. It completes pulling all the data in 9 minutes. Then cron triggers it again in 1 minute instead of in 10 minutes, which is correct, but not a desired behavior.

Describe alternatives you've considered
Using some other cron or job mechanisms to identify when to start a non cron workflow

Contributor guide

Open the contributing guide

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.