Skip to main content

How to set SessionOptions in Go

Create an instance of SessionOptions and pass them to the CreateSession()

FieldRequiredType
ExecutionTimeoutNotime.Duration
CreationTimeoutNotime.Duration
HeartbeatTimeoutNotime.Duration

ExecutionTimeout

Specifies the maximum amount of time the session can run.

  • Type: time.Duration
  • Default:

CreationTimeout

Specifies how long session creation can take before returning an error.

  • Type: time.Duration
  • Default:

HeartbeatTimeout

Specifies the heartbeat timeout.

  • Type: time.Duration
  • Default: