<#372 Add support for using task execution ID fiel...
# flyte-github
a
#372 Add support for using task execution ID fields in log URI templates Pull request opened by jeevb This PR adds a new templating scheme,
TaskExecution
, that supports the following task execution metadata variables in the log link templates:
Copy code
{{ .taskID }}
{{ .taskVersion }}
{{ .taskProject }}
{{ .taskDomain }}
{{ .taskRetryAttempt }}
{{ .nodeID }}
{{ .executionName }}
{{ .executionProject }}
{{ .executionDomain }}
{{ .subtaskExecutionIndex }}
{{ .subtaskParentName }}
{{ .subtaskRetryAttempt }}
{{ .subtaskParentRetryAttempt }}
Usage:
Copy code
plugins:
  logs:
    kubernetes-enabled: false
    templates:
      - displayName: Task Logs
        templateUris:
          - <https://flyte.corp.net/console/projects/{{.executionProject}}/domains/{{.executionDomain}}/executions/{{.executionName}}/nodeId/{{.nodeID}}/taskId/{{.taskID}}/attempt/{{.taskRetryAttempt}}/view/logs>
        messageFormat: 2
        scheme: TaskExecution
  k8s-array:
    logs:
      config:
        kubernetes-enabled: false
        templates:
          - displayName: Task Logs
            templateUris:
              - <https://flyte.corp.net/console/projects/{{.executionProject}}/domains/{{.executionDomain}}/executions/{{.executionName}}/nodeId/{{.nodeID}}/taskId/{{.taskID}}/attempt/{{> .subtaskParentRetryAttempt }}/mappedIndex/{{ .subtaskExecutionIndex }}/mappedAttempt/{{ .subtaskRetryAttempt }}/view/logs
            messageFormat: 2
            scheme: TaskExecution
flyteorg/flyteplugins Codecov: 62.91% (-0.02%) compared to 3d2525a 6 other checks have passed 6/7 successful checks