Hello everyone, How can I assign a run-tag to a jo...
# ask-community
a
Hello everyone, How can I assign a run-tag to a job run from a graphQL API? Do, I have to pass tag dict in my executionParams like this ?
Copy code
executionParams: {
      selector: {
        repositoryLocationName: "ss_jobs_repo.py"
        repositoryName: "ss_jobs_repo"
        jobName: "amz_immediate_sync"
      }
      runConfigData: $runConfigData 
      tags:{ key: "", value: "" }
    }
c
Hi Aman. Your execution params would look like this:
Copy code
{
  "executionParams": {
    "selector": {
      "jobName": "test_job",
      "repositoryName": "my_repo",
      "repositoryLocationName": "location.py"
    },
    "executionMetadata": {
      "tags": [
        {
          "key": "tag_name",
          "value": "tag_value"
        }
      ]
    }
  }
}
a
Got it, Let me see. Thank you for the response.
Also, If I want to set job priority I can assign it as a key value in the tags dict, right?
Copy code
tags={"dagster/priority": "1"}

"tags": [{"key": "dagster/priority", "value": "1"}]
c
yep, i think that should work
✌️ 1