When I run `prefect deployment build file.py:flow_...
# ask-community
o
When I run
prefect deployment build file.py:flow_name --name some-deployment -sb azure/block-name
I get the error
TypeError: put_directory() got an unexpected keyword argument 'ignore_file'.
I then went into prefect/cli/deployment.py and removed the ignore_file arg in line 470 and ran the command again and only
file.py
is added to my azure container and everything seems to be stuck in an endless loop. Has anyone had this problem/know what could have gone wrong? Cheers 🙂 TLDR:
prefect deployment build
stuck in endless loop and not accepting ignore_file arg.
o
@Owen Cook I think I was amongst the first ones to discover this yesterday! 😄 Anna fixed it right away, the fix should be included in the next release (unless I've misunderstood how their release process works). I'll find you a link to the PR so you can merge it in manually while you wait, that's how I've been able to progress.
o
@Oscar Björhn awesome, thanks 🙂
Did you have any problem with the infinite looping? I've had a look at the changes made and can't seem to see why there would be an infinite loop in there?
o
Yeah, I did. The infinite loop was caused by folders not being handled correctly when uploading folders to Azure, Anna's fix includes a fix to that particular issue. I've had no problems since I replaced my filesystems.py with the one in the PR.
o
Ahhh, here we go
Copy code
if Path(f).is_dir():
    pass
Nice 🙂
👍 1