269
270
if s.State.LastProcessedTime == nil {
271
>
// log these as json since it's more readable than the Go representation
workflow.go
272
>
specJson, _ := protojson.Marshal(s.Schedule.Spec)
273
>
policiesJson, _ := protojson.Marshal(s.Schedule.Policies)
274
>
s.logger.Info("Starting schedule", "spec", string(specJson), "policies", string(policiesJson))
275
>
276
>
s.State.LastProcessedTime = timestamppb.New(s.now())
277
>
s.State.ConflictToken = InitialConflictToken
278
>
s.Info.CreateTime = s.State.LastProcessedTime
279
>
280
>
s.recordActionPayloadMetrics()
281
>
}
282
283
// A schedule may be created with an initial Patch, e.g. start one immediately. Put that in