Real-time mode time parameter configuration

Updated at:

This guide covers the configuration of time parameters for real-time computing tasks, which are essential for managing runtime offsets.

Procedure

  1. For more information, see the real-time mode configuration entry to navigate to the Real-time Mode configuration page.

  2. In the Time Parameter section of the configuration panel, input the time parameter details for the task's real-time mode.

    The key time parameter for real-time tasks is stat_date. It is used to adjust for runtime offsets in real-time computing. For instance, to calculate the daily aggregate value of an indicator while accounting for time discrepancies, set stat_date to a time after midnight to exclude any offset times.

    To streamline the process and avoid repeatedly setting stat_date in task parameters, simply add a kv configuration for stat_date within the property settings of the real-time task. The Value should be an expression reflecting business time. You may also set multiple time parameters, each separated by a period. For example, stat_date=${yyyyMMdd-1} indicates that the task will start processing at the time represented by ${yyyyMMdd-1}.

  3. To finalize the configuration, click OK.