https://dagster.io/ logo
#ask-community
Title
# ask-community
a

Archie Kennedy

12/09/2022, 12:26 PM
Hello, does anybody have an example of adding a tag to a job run when triggering via GraphQL? I have the following query that works:
Copy code
mutation LaunchRunMutation(
  $repositoryLocationName: String!
  $repositoryName: String!
  $jobName: String!
  $runConfigData: RunConfigData!
) {
  launchRun(
    executionParams: {
      selector: {
        repositoryLocationName: $repositoryLocationName
        repositoryName: $repositoryName
        jobName: $jobName
      }
      runConfigData: $runConfigData
    }
  ) {
    __typename
    ... on LaunchRunSuccess {
      run {
        runId
      }
    }
    ... on RunConfigValidationInvalid {
      errors {
        message
        reason
      }
    }
    ... on PythonError {
      message
    }
  }
}
c

chris

12/09/2022, 7:36 PM
you can do it via
executionMetadata
in the `executionParams`:
Copy code
executionParams:
  executionMetadata:
    tags:
       [{key: some_key, value: some_value}, ...]
a

Archie Kennedy

12/12/2022, 10:18 AM
thanks!
23 Views