Skip to main content

State

State is the persisted State of the resource.

Attributes

AttributeTypeDescription
Phase[Phase](phase.md?sid=flyteplugins_go_tasks_pluginmachinery_webapi_phase)current phase of the resource.
PhaseVersionuint32is the version of the phase. This is used to detect if the phase has changed since the last time
ResourceMeta[ResourceMeta](resourcemeta.md?sid=flyteplugins_go_tasks_pluginmachinery_webapi_resourcemeta)contain metadata about resource this task created. This can be a complex structure or a simple type (e.g. a string). It should contain enough information for the plugin to interact (retrieve, check status, delete) with the resource through the remote service.
SyncFailureCountintThis number keeps track of the number of failures within the sync function. Without this, what happens in the sync function is entirely opaque. Note that this field is completely orthogonal to Flyte system/node/task level retries, just errors from hitting API, inside the sync loop
AllocationTokenRequestStartTimetime.TimeThe time the execution first requests for an allocation token
ErrorMessagestringgenerated during cache synchronization.