Repeatable Flows - only parent job get's repeated
See original GitHub issueProblem
I seem to be having an issue with repeatable flows where only the parent job will repeat, but any dependencies get lost and never run again.
Ideal solution
Ideally, I think we should be able to set the entire flow to repeat as a complete unit, all dependencies included.
Code Example
I have tried the code below with the repeat set on only the child, only the parent, or both child and parent jobs, and in all cases, on the parent job repeats.
const flowProducer = new FlowProducer({connection: redisConn);
flowProducer.add({
name: 'parent job',
queueName: '...somename',
data: 'someData',
opts: {repeat: {cron: "10 * * * * *"}},
children: [
{name: 'child job',
queueName: '...somename',
data: 'someData',
opts: {repeat: {cron: "10 * * * * *"}}}
]
});
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Repeatable Flows - only parent job get's repeated #851
Problem. I seem to be having an issue with repeatable flows where only the parent job will repeat, but any dependencies get lost...
Read more >Duplicating a Flow (with Child flows) within a Solution
This flow calls on child flows within the solution. Now that the template flow is done, I am trying to duplicate the template...
Read more >Repeating task with repeating dependencies
The problem is, when the task repeats, it marks the parent task as dependent on the completed child task, not on the new...
Read more >307 - Building Scalable and Repeatable Solutions - Help Center
Building scalable and repeatable Flows isn't hard. Let's review some of the ways that experienced Flowgrammers accomplish this.
Read more >Repeatable Fields & Sections with Salesforce
When working with multiple records and defining relationships between them, repeating fields should only be on the parent step. When a step in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Even better maybe it is possible to use this https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html instead of throwing an exception in runtime.
🎉 This issue has been resolved in version 1.51.2 🎉
The release is available on:
Your semantic-release bot 📦🚀