236
d.GetState().GetRoutingConfig() == nil ||
237
d.GetState().GetConflictToken() == nil {
239
d.State = &deploymentspb.WorkerDeploymentLocalState{}
240
}
242
>
d.State.CreateTime = timestamppb.New(workflow.Now(ctx))
243
>
}
244
>
if d.State.RoutingConfig == nil {
245
d.State.RoutingConfig = &deploymentpb.RoutingConfig{CurrentVersion: worker_versioning.UnversionedVersionId}
246
}
248
>
d.State.ConflictToken, _ = workflow.Now(ctx).MarshalBinary()
249
>
}
250
251
// updating the memo since the RoutingConfig is updated
252
>
if err := d.updateMemo(ctx); err != nil {
workflow.go
253
return err
254
}
255
256
>
d.metrics.Counter(metrics.WorkerDeploymentCreated.Name()).Inc(1)
workflow.go
257
}
258
if d.State.Versions == nil {