Skip to content

Commit

Permalink
Rename arg pull worker_image_service.build to pull_image
Browse files Browse the repository at this point in the history
to be consistent with worker_pool_service.create_image_and_pool_request
  • Loading branch information
kiendang committed May 31, 2024
1 parent f3f8eb4 commit 270d053
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions notebooks/api/0.8/10-container-images.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@
" image_uid=workerimage.id,\n",
" tag=docker_tag,\n",
" registry_uid=registry_uid,\n",
" pull=pull,\n",
" pull_image=pull,\n",
")\n",
"docker_build_result"
]
Expand Down Expand Up @@ -1483,7 +1483,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.12.2"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion packages/syft/src/syft/node/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,7 @@ def create_default_worker_pool(node: Node) -> SyftError | None:
context,
image_uid=default_image.id,
tag=DEFAULT_WORKER_IMAGE_TAG,
pull=pull_image,
pull_image=pull_image,
)

if isinstance(result, SyftError):
Expand Down
2 changes: 1 addition & 1 deletion packages/syft/src/syft/service/request/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def _run(
image_uid=worker_image.id,
tag=self.tag,
registry_uid=self.registry_uid,
pull=self.pull_image,
pull_image=self.pull_image,
)

if isinstance(build_result, SyftError):
Expand Down
4 changes: 2 additions & 2 deletions packages/syft/src/syft/service/worker/worker_image_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def build(
image_uid: UID,
tag: str,
registry_uid: UID | None = None,
pull: bool = True,
pull_image: bool = True,
) -> SyftSuccess | SyftError:
registry: SyftImageRegistry | None = None

Expand Down Expand Up @@ -130,7 +130,7 @@ def build(
result = None

if not context.node.in_memory_workers:
build_result = image_build(worker_image, pull=pull)
build_result = image_build(worker_image, pull=pull_image)
if isinstance(build_result, SyftError):
return build_result

Expand Down

0 comments on commit 270d053

Please sign in to comment.