Package io.digdag.spi
Interface ScheduleTime
-
@Immutable public interface ScheduleTime
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static java.time.InstantalignedNow()java.time.InstantgetRunTime()Actual execution time of a scheduled attempt.java.time.InstantgetTime()The session_time variable of a scheduled attempt.static ScheduleTimeof(java.time.Instant time, java.time.Instant runTime)static ScheduleTimerunNow(java.time.Instant time)
-
-
-
Method Detail
-
getRunTime
java.time.Instant getRunTime()
Actual execution time of a scheduled attempt.
-
getTime
java.time.Instant getTime()
The session_time variable of a scheduled attempt. A session attempt has session_time variable which may not be same with actual run time because a lot of scheduled workflows has a target time. Target time is usually exact time (e.g. 00:00:00 every day), while actual run time usually has some delay (e.g. 00:00:13) because a workflow may want to wait for other components to be prepared before starting, session could be created using backfill, or queuing of an attempt may be delayed.
-
of
static ScheduleTime of(java.time.Instant time, java.time.Instant runTime)
-
runNow
static ScheduleTime runNow(java.time.Instant time)
-
alignedNow
static java.time.Instant alignedNow()
-
-