mammoth-rainbow-82717
05/02/2023, 2:04 PMWorkflow and WorkflowTemplate and 52 for CronWorkflow resources. (See this issue.) However, the checks in Metaflow seem to indicate it is 253. Are the limits not 63 & 52? Or am I misunderstanding this check?mammoth-rainbow-82717
05/02/2023, 2:26 PMmammoth-rainbow-82717
05/02/2023, 2:35 PMancient-application-36103
05/02/2023, 3:58 PMmammoth-rainbow-82717
05/02/2023, 3:59 PMancient-application-36103
05/02/2023, 4:03 PMargo-workflows create or through a different process? We have had scenarios in the past where manual uploads followed a different Argo code path resulting in inconsistencies with length related errors.mammoth-rainbow-82717
05/02/2023, 4:05 PMmammoth-rainbow-82717
05/02/2023, 4:06 PMancient-application-36103
05/02/2023, 4:11 PMmammoth-rainbow-82717
05/02/2023, 4:51 PMancient-application-36103
05/02/2023, 5:31 PMfrom metaflow import FlowSpec, Parameter, step
class AlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlow(FlowSpec):
alpha = Parameter('alpha',
default=10)
@step
def start(self):
print("alpha is %s" % self.alpha)
self.next(self.end)
@step
def end(self):
from metaflow.integrations import ArgoEvent
ArgoEvent(name="foo").add_to_payload("beta", self.alpha + 1).publish()
if __name__ == '__main__':
AlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlowAlphaFlow()
Both argo-workflows create and argo-workflows trigger work as expected. The workflow template indeed takes a name that can be more than 63 chars. The workflow takes a name that can only be at max 63 chars and argo-workflow trigger accounts for that. Depending on how you are using Metaflow with Argo CD, it should be wholly possible to deploy such a workflow in a functioning state.ancient-application-36103
05/02/2023, 5:32 PMancient-application-36103
05/02/2023, 5:33 PMmammoth-rainbow-82717
05/02/2023, 5:48 PMmammoth-rainbow-82717
05/02/2023, 5:49 PMmammoth-rainbow-82717
05/02/2023, 5:50 PMmammoth-rainbow-82717
05/02/2023, 5:51 PMancient-application-36103
05/02/2023, 5:56 PMancient-application-36103
05/02/2023, 5:58 PMmammoth-rainbow-82717
05/02/2023, 6:00 PMargo template create -n mlplatform-example ~/Code/mlplatform-examples-argoworkflows/workflows/toy/workflow_template.yaml
2023/05/02 19:00:22 Failed to create workflow template: workflow template name "workflow-template-submittable-workflow-template-submittable-workflow-template-submittable-workflow-template-submittable" must not be more than 63 characters long (currently 119)mammoth-rainbow-82717
05/02/2023, 6:01 PMancient-application-36103
05/02/2023, 6:02 PMargo-workflows --name foo createmammoth-rainbow-82717
05/02/2023, 6:03 PMkubectl apply -n mlplatform-example -f ~/Code/mlplatform-examples-argoworkflows/workflows/toy/workflow_template.yaml
<http://workflowtemplate.argoproj.io/workflow-template-submittable-workflow-template-submittable-workflow-template-submittable-workflow-template-submittable|workflowtemplate.argoproj.io/workflow-template-submittable-workflow-template-submittable-workflow-template-submittable-workflow-template-submittable> created
This creates the template and then dies when submitting the template via the UI.mammoth-rainbow-82717
05/02/2023, 6:04 PMancient-application-36103
05/02/2023, 6:04 PMancient-application-36103
05/02/2023, 6:05 PMargo-workflows triggermammoth-rainbow-82717
05/02/2023, 6:05 PMancient-application-36103
05/02/2023, 6:06 PMevent-triggering release, metaflow will also create sensors during argo-workflows createmammoth-rainbow-82717
05/02/2023, 6:06 PMancient-application-36103
05/02/2023, 6:08 PMargo-submit and kubectl apply . We can definitely go through all the edge case scenarios on our side and make sure the generated templates play well with both