From 513083b2933f4fd75169ca64011096a6ad3a128d Mon Sep 17 00:00:00 2001 From: Rohan Rebello <1291433+rohanrebello@users.noreply.github.com> Date: Mon, 13 Nov 2023 18:42:31 -0800 Subject: [PATCH] Add deployed-at timestamp in annotations for argo-workflows --- metaflow/plugins/argo/argo_workflows.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/metaflow/plugins/argo/argo_workflows.py b/metaflow/plugins/argo/argo_workflows.py index 4b64af36cc9..0ba7b3c6cac 100644 --- a/metaflow/plugins/argo/argo_workflows.py +++ b/metaflow/plugins/argo/argo_workflows.py @@ -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: