<#5162 [Core feature] --lables Option for pyflyte ...
# flyte-github
c
#5162 [Core feature] --lables Option for pyflyte register Issue created by gilbert-stripe ### Motivation: Why do you think this is important? We are the ML infra team for our company and we provide Flyte as a platform to our internal users. As a result, we cannot add labels in the tasks or launch plans since we are not the owner of the workflow code. However, we hope to add some metadata while registering the workflow, and be used when the workflow runs later. For example, we want to save the git commit hash when user save their models. So we can retrieve the git commit hash by remote.fetch_launch_plan().get_lables().get("git_commit_hash"). In conclusion, the overall process is: 1. Users develop their workflow code 2. Users git commit their workflow code and we build the image by CI. Unfortunately we cannot inject env vars to the image in this step due to company's restriction. 3. ML infra team use the image from step 2 and pyflyte register --labels to register the workflow and inject the metadata in launch labels. 4. We can develop the API (like save_model) by utilizing the metadata we want from the launch plan lables. ### Goal: What should the final outcome look like, ideally? pyflyte register supports adding launch labels. ### Describe alternatives you've considered There is no alternatives. ### Propose: Link/Inline OR Additional context No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte