Prefect: Breaking change in 0.6.0

Created on 1 Aug 2019  路  3Comments  路  Source: PrefectHQ/prefect

Hi team,

We were using release 0.5.5 and when trying to upgrade to 0.6.0 we are faced with a breaking change: prefect forces us to use all lowercase letters for keys in the config.toml file.

This creates a problem for us because we have several keys who are different only in their letter-casing by design, so that if we try to lowercase both, we are faced with a duplicate key.

Is there a good reason for this change or is it something that may be fixed?

Thanks!

All 3 comments

Hi @orcaman - the reason for this change is that the primary way of setting configuration values is by environment variable, and depending on the OS, env vars may not respect case. Therefore it becomes impossible to update a mixed-case configuration key by environment variable. (We found this one out the hard way from some Windows users.) Moreover, we don't want to only update configuration keys that exactly match the environment variable casing because most env vars are uppercase by convention, but prefect keys are generally not.

However, we could consider relaxing the error message and documenting that environment variables can only be used to override lower-case config keys. @cicdw what do you think?

@jlowin that would be great!

@orcaman please see #1290

Was this page helpful?
0 / 5 - 0 ratings