question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Repeatable Flows - only parent job get's repeated

See original GitHub issue

Problem

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:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
manastcommented, Nov 2, 2021

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.

0reactions
github-actions[bot]commented, Nov 3, 2021

🎉 This issue has been resolved in version 1.51.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found