Class - mitto.iov2.steps.upsert.SetUpdatedAt

JSON Schema

SetUpdatedAt

Set the updated_at value for the inputter in use by calling the inputter’s updated_at function, thereby causing the inputter to return only data with a timestamp that is equal to or greater (i.e., newer) than timestamp.

By default, timestamp is obtained from the job’s environment. Timestamp is usually placed into the environment by the MaxTimestamp step, which must precede the SetUpdatedAt step.

SetUpatedAt accepts an optional timestamp parameter. When present, the value is used when calling the inputter’s updated_at function, overriding the timestamp value, if present in the job’s environment.

Providing a value for timestamp is most commonly most used when first configuring a job or debugging a job to limit the amount of data returned by the inputter; it is seldom used in production.

Numeric (non-string) timestamp values are currently unsupported by SetUpdatedAt, although they are supported by MaxTimestamp.

type

object

properties

  • environ

Environ

The job’s runtime execution environment. Do not provide this value in a job config; it is automatically provided by Runner.

  • logger

Logger

The Runner logger to use for log messages. Do not provide this value in a job config; it is automatically provided by Runner.

  • timestamp

Timestamp

The value must be a string representing a date or datetime in ISO 8601 format. The following formats are not supported: 2024-W18, 2024-W18‐5, and 2024‐124. The value can optionally contain timezone information. If value is None (the default) the value is taken from the TIMESTAMP in the job’s execution environment.

type

string

examples

2024-04-29

2024-04-29T17:25:32

2024-04-29T17:25:32Z

2024-04-29T172532Z

2024-04-29T17:25:32-07:00

2024-04-29T17:25:32-00:00

2024-04-30T00:25:32+07:00