hop icon indicating copy to clipboard operation
hop copied to clipboard

[Feature Request]: Allow Variables in Repeat Section of Start Action

Open dsanderbi opened this issue 6 months ago • 1 comments

What would you like to happen?

Currently, in the Start action configuration of Apache Hop, the Repeat section only allows fixed interval values to be selected from dropdown menus (e.g., predefined values for Seconds, Minutes, etc.).

It would be very helpful to support the use of variables (e.g., ${REPEAT_SECONDS}, ${REPEAT_MINUTES}) in these fields, similar to how variables can be used in other parts of Apache Hop.

This would allow for more flexible and dynamic scheduling setups, where repeat intervals can be defined or overridden at runtime via environment variables.

Image

Issue Priority

Priority: 2

Issue Component

Component: Actions

dsanderbi avatar Jun 27 '25 08:06 dsanderbi

FYI: as mentioned in the docs, the repeat options in the Start action are mainly there for historical reasons.

bamaer avatar Jun 27 '25 12:06 bamaer

FYI: as mentioned in the docs, the repeat options in the Start action are mainly there for historical reasons.

Hi, thanks for the link.

Does that mean it's unlikely that this feature will be implemented? Just because it's included in the code for historical reasons doesn't mean it can't be developed further to provide additional value.

dsanderbi avatar Jul 01 '25 05:07 dsanderbi

One of our currently migrated PDI projects quite heavily rely on the "Repeat" functionality of the Start transform.

gmitter-ef avatar Jul 01 '25 09:07 gmitter-ef

Two suggestions for the docs:

  • when "Repeat" is checked, already the first execution gets delayed by the specified amount of time
  • when you UNcheck "Repeat", the interval times get greyed out, but STILL they have have effect by delaying the first (and here: only) execution (question remains that if it is the desired behaviour that a greyed-out variable has an influence? but that's part of https://github.com/apache/hop/issues/5459)

gmitter-ef avatar Jul 01 '25 09:07 gmitter-ef

At least this was easy to do. I also added an option to not execute at the first execution and fixed bug #5459

Image

mattcasters avatar Jul 07 '25 15:07 mattcasters