Skip to content

Commit

Permalink
Add deployed-at timestamp in annotations for argo-workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanrebello committed Nov 14, 2023
1 parent 6badc1d commit 513083b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions metaflow/plugins/argo/argo_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,11 +615,14 @@ def _compile_workflow_template(self):
# generate container templates at the top level (in WorkflowSpec) and maintain
# references to them within the DAGTask.

from datetime import datetime

annotations = {
"metaflow/production_token": self.production_token,
"metaflow/owner": self.username,
"metaflow/user": "argo-workflows",
"metaflow/flow_name": self.flow.name,
"metaflow/updated_at": str(datetime.now().timestamp()),
}

if self.parameters:
Expand Down

0 comments on commit 513083b

Please sign in to comment.