Naga Sravika Bodapati

    Naga Sravika Bodapati

    4 months ago
    Is there a way to set the start time of a IntervalClock for a flow using an input parameter?
    Anna Geller

    Anna Geller

    4 months ago
    What's your use case? Why would you want to do it this way?
    Naga Sravika Bodapati

    Naga Sravika Bodapati

    4 months ago
    dockerize flows and trigger them from one parent flow.
    Anna Geller

    Anna Geller

    4 months ago
    how is the parametrization of scheduled start_time relevant here? it may sound like a dumb question, but I don't see the connection here
    interval schedules are generally meant to be running every X, say every 15 minutes - I would like to understand why parametrizing the start time would matter here given it runs on a regular interval anyway
    Naga Sravika Bodapati

    Naga Sravika Bodapati

    4 months ago
    We have to start 150 flows with batches of 10 each and 10mins apart
    Anna Geller

    Anna Geller

    4 months ago
    so the problem is batching and limiting concurrency?
    Naga Sravika Bodapati

    Naga Sravika Bodapati

    4 months ago
    yes
    clock_1 = IntervalClock(timedelta(minutes=10),
                            start_date=datetime.now(ist),
                            parameter_defaults={'Frequency':'Start_At_0'})
    
    clock_2 = IntervalClock(timedelta(minutes=10),
                            start_date=datetime.now(ist) + timedelta(minutes=15),
                            parameter_defaults={'Frequency':'Start_At_15'})
    can i use something like this?
    for the parent flow?
    Anna Geller

    Anna Geller

    4 months ago
    Nice, I'm so glad we identified the actual problem here. Using parameters is not a good solution here - instead, it would be better if you set a concurrency limit for this flow - check this page
    Naga Sravika Bodapati

    Naga Sravika Bodapati

    4 months ago
    thanks anna, will check
    Anna Geller

    Anna Geller

    4 months ago
    to explain why: even if we define the parameters to start the first run at a given time using a parametrized start_date, the interval clock will keep spinning up new flow runs every 10 minutes for each of those clocks, which doesn't solve your actual problem of queueing the "too many" runs - but concurrency limits will help
    Naga Sravika Bodapati

    Naga Sravika Bodapati

    4 months ago
    yeah, makes sense!
    Will try this out Anna 🙂