Is there a way to remove the local label added by ...
# ask-community
e
Is there a way to remove the local label added by
flow.register()
function? I notice that if I use
prefect register
command line tool, the label is exactly what I provided, but if I use python code, it will be added. I read the doc and it says this is the desired behavior, wonder if there is a way to get it removed?
k
Hi @Enda Peng! How are you setting the label? Like this:
flow.register(xxx, labels=['label1])
?
e
that’s what I did.
Copy code
flow.register(
                project_name="tester",
                labels=["atest"])
and this is the output
Copy code
Flow URL: <https://cloud.prefect.io/enda-databento-com-s-account/flow/3bc76340-bc96-41db-9001-c4478bfbaec0>
 └── ID: 01daa619-c29a-4723-87c8-a77d561784c5
 └── Project: tester
 └── Labels: ['atest', 'enda-work.local']
k
Try
add_default_labels = False
e
it works, thank you!