https://prefect.io logo
Title
j

Jack Chang

08/22/2022, 6:01 PM
Am I putting the default label flag in the wrong place? I am getting this error:
TypeError: __init__() got an unexpected keyword argument 'add_default_labels'
My configuration looks like this:
# Configure a custom image
f.run_config = DockerRun(
    labels=["grls"],
    add_default_labels=False,
)
1
m

Mason Menges

08/22/2022, 6:10 PM
I think that actually needs to be set as an environment variable https://docs-v1.prefect.io/core/concepts/configuration.html#environment-variables so something like this
f.run_config = DockerRun(
    labels=["grls"],
    env={"add_default_labels": False},
)
j

Jack Chang

08/22/2022, 6:34 PM
@Mason Menges Worked! Thanks!!
🙌 1