clever-pencil-68951
02/21/2023, 2:19 PMcuddly-family-48123
02/21/2023, 4:51 PM--tag parameter is how you affect what namespace a flow is written to. Here's where I was reading about it:
https://docs.metaflow.org/scaling/tagging#tags-as-namespaces
Hopefully someone will correct me here if I am steering you wrong.clever-pencil-68951
02/22/2023, 11:28 AMcuddly-family-48123
02/22/2023, 7:14 PM--tag is more of a manual way of controlling namespace, providing a lot of power. Using the @project decorator in combination with usage of the --production and --branch parameters looks like the more "batteries included" team-centric way of driving this behavior.
https://docs.metaflow.org/production/coordinating-larger-metaflow-projects#the-project-decorator
Ifdid not have aProjectFlow, it would get deployed as a workflow called@project decoratoron AWS Step Functions byProjectFlow. Only one version ofstep-functions createcould exist on a production orchestrator at a time. Everyone deploying the flow would need to know the production token assigned to the deployment.ProjectFlow
Thedecorator adds a user-specific prefix in the workflow name: the workflow gets deployed with a name like@projectwhereexample_project.user.YOURNAME.ProjectFlowis your username. Metaflow gets the username by looking, in order, at the following environment variables:YOURNAME,METAFLOW_USER,SUDO_USERandUSERNAME.USER
This allows multiple developers to deploy their workflows on a production orchestrator without fear that they might interfere with someone else's deployment.
clever-pencil-68951
02/23/2023, 3:07 AMclever-pencil-68951
02/23/2023, 3:20 AM