Dekel R
12/20/2021, 3:25 PMraise InterruptedError(line.get("error"))
InterruptedError: name invalid: Request contains an invalid argument.
In order to register my flow I use the following command -
prefect register --project "Project_name" --path path_to_flow_file.py --name "brands-recognition"
Project_name is the project I have at Prefect cloud
path_to_flow_file is the path to the file which contains my flow
brands-recognition is the flow name.
This is my flow snippet (for debug purposes - just 2 tasks)-
schedule = IntervalSchedule(interval=timedelta(days=7))
with Flow("brands-recognition",
storage=Docker(registry_url="us-central1-docker.pkg.dev/xxx/",
dockerfile="./Dockerfile"), schedule=schedule) as flow: # , schedule=schedule
mode = Parameter('FULL_UPDATE', default=None)
task_a(mode)
flow.run_config = VertexRun(machine_type='e2-standard-8', labels=["ml"],
service_account='prefect-integration@xx')
# flow.run()
Now when running locally - the flow runs smoothly and generates a result.
It seems like the problem is only at the pushing phase (when I register the flow).
What am I missing?
Thanks.Anna Geller
stored_as_script=True
. Here are two examples that show this patternDekel R
12/20/2021, 3:37 PMDekel R
12/20/2021, 3:41 PMSuccessfully built 52d7d77892d6
Successfully tagged us-central1-docker.pkg.dev/xx/xxxx/brands-recognition:2021-12-20t15-13-10-030169-00-00
And then it fails at the next step
INFO - prefect.Docker | Pushing image to the registry...
Anna Geller
Anna Geller
docker login -u yourusername -p yourpassword
Dekel R
12/20/2021, 3:50 PM[2021-12-20 17:13:25+0200] INFO - prefect.Docker | Pushing image to the registry...
Error building storage:
Traceback (most recent call last):
File "/Users/dekelr/PycharmProjects/venvs/brand-identification/lib/python3.9/site-packages/prefect/cli/build_register.py", line 463, in build_and_register
storage.build()
File "/Users/dekelr/PycharmProjects/venvs/brand-identification/lib/python3.9/site-packages/prefect/storage/docker.py", line 308, in build
self._build_image(push=push)
File "/Users/dekelr/PycharmProjects/venvs/brand-identification/lib/python3.9/site-packages/prefect/storage/docker.py", line 381, in _build_image
self.push_image(full_name, self.image_tag)
File "/Users/dekelr/PycharmProjects/venvs/brand-identification/lib/python3.9/site-packages/prefect/storage/docker.py", line 595, in push_image
raise InterruptedError(line.get("error"))
InterruptedError: name invalid: Request contains an invalid argument.
I already logged out and back in - still doesn’t work.Anna Geller
Dekel R
12/20/2021, 4:26 PM