<@ULVA73B9P> I believe a new bug has been introduc...
# marvin-in-the-wild
p
@Marvin I believe a new bug has been introduced. I can't replace variables through code because it raises an error
A variable with the name 'meta_before_cursors_prod' already exists.
even though I'm setting the
overwrite
param to
True
. It even fails in the UI, I had to delete and create it again.
m
I found an issue on the Prefect GitHub repository that might relate to the problem you're experiencing with variables and the
overwrite
parameter. The pull request #12596 discusses updates to
Variable.set
methods which require
overwrite=True
for updates, but this is still in draft and hasn't been merged yet. Regarding the error for the variable with the name 'meta_before_cursors_prod' already existing, it seems like this could be a bug or a feature not fully implemented. Since this PR is in draft, the final behavior might not be available in your current version. It might be helpful to check the status of this pull request and any related issues for updates on whether the feature has been finalized and merged. As for the other issues I found, none of them seem to relate directly to setting variables with
overwrite=True
, so it's likely the first PR I mentioned is the closest to your description. If this does not solve your issue, I would consider reporting a new bug to Prefect, providing the details of the error and the steps you've already taken, such as deleting and creating the variable again in the UI.
b
👋
Will replicate and open an issue can post here for visibility
m
Here's the issue on Git so you can stay updated: https://github.com/PrefectHQ/prefect/issues/13291
👀 1