You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4e76cb9
Browse filesBrowse the repository at this point in the historyBrowse files
The external job URI is already treated as special in Armada (dedicated
DB column, dedicated query API endpoint), but clients have to know the
magic annotation key "armadaproject.io/externalJobUri" to use it. This
makes the field undiscoverable and means clients get no help from type
checking or generated docs.
This adds external_job_uri as a proper proto field on JobSubmitRequestItem
and SubmitJob, so clients can set it directly. The server resolves the
value from the proto field first and falls back to the annotation for
backward compatibility. The value is mirrored into the annotation on the
outgoing event so older ingesters that only read the annotation continue
to work during rolling deploys.
The Airflow operator is updated to use the proto field when available
(guarded by hasattr for older client library versions) while continuing
to set the annotation for backward compat with older servers.
Signed-off-by: Dejan Zele Pejchev <pejcev.dejan@gmail.com>
" \"description\": \"URI identifying this job in an external system (e.g. Airflow).\\nIf not set, the server falls back to the \\\"armadaproject.io/externalJobUri\\\" annotation.\",\n"+
Copy file name to clipboardExpand all lines: pkg/api/api.swagger.json
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1870,6 +1870,10 @@
1870
1870
"clientId": {
1871
1871
"type": "string"
1872
1872
},
1873
+
"externalJobUri": {
1874
+
"description": "URI identifying this job in an external system (e.g. Airflow).\nIf not set, the server falls back to the \"armadaproject.io/externalJobUri\" annotation.",
0 commit comments