Skip to content
Snippets Groups Projects
  • Erin (Josh) Rigler's avatar
    6355305d
    update interval no longer shrinks with recursion · 6355305d
    Erin (Josh) Rigler authored
    Previously, the endtime-starttime interval being processed by the
    `run_as_update` method would shrink by 1 (second) with each recursion.
    This ultimately broke `run_as_update` when processing anything other
    than 1-second data, but it wasn't obvious because we rarely had to
    actually recurse. There is a little trickery now to ensure that user-
    provided starttime and endtime are inclusive of the full first
    (most recent) update interval, while subsequent, calculated, endtimes
    are set equal to the prior starttime minus specified output_interval
    (e.g., 'second', 'minute', etc.).
    6355305d
    History
    update interval no longer shrinks with recursion
    Erin (Josh) Rigler authored
    Previously, the endtime-starttime interval being processed by the
    `run_as_update` method would shrink by 1 (second) with each recursion.
    This ultimately broke `run_as_update` when processing anything other
    than 1-second data, but it wasn't obvious because we rarely had to
    actually recurse. There is a little trickery now to ensure that user-
    provided starttime and endtime are inclusive of the full first
    (most recent) update interval, while subsequent, calculated, endtimes
    are set equal to the prior starttime minus specified output_interval
    (e.g., 'second', 'minute', etc.).