State
State is the persisted State of the resource.
Attributes
| Attribute | Type | Description |
|---|---|---|
| Phase | [Phase](phase.md?sid=flyteplugins_go_tasks_pluginmachinery_webapi_phase) | current phase of the resource. |
| PhaseVersion | uint32 | is 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. |
| SyncFailureCount | int | This 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 |
| AllocationTokenRequestStartTime | time.Time | The time the execution first requests for an allocation token |
| ErrorMessage | string | generated during cache synchronization. |