Skip to content

Commit

Permalink
Set image pull policy to always (#386)
Browse files Browse the repository at this point in the history
Addresses #365
  • Loading branch information
PhilippeMoussalli authored Aug 24, 2023
1 parent 0d85b3c commit 43b0e39
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fondant/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ def kfp_pipeline():
component_task,
component_op,
)

# Set image pull policy to always
component_task.container.set_image_pull_policy("Always")

# Set the execution order of the component task to be after the previous
# component task.
if previous_component_task is not None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ spec:
- --output_manifest_path
- /tmp/outputs/output_manifest_path/data
image: example_component:latest
imagePullPolicy: Always
resources:
limits:
nvidia.com/gpu: 1
Expand Down Expand Up @@ -115,6 +116,7 @@ spec:
- --output_manifest_path
- /tmp/outputs/output_manifest_path/data
image: example_component:latest
imagePullPolicy: Always
inputs:
artifacts:
- name: first-component-output_manifest_path
Expand Down Expand Up @@ -209,6 +211,7 @@ spec:
- --output_manifest_path
- /tmp/outputs/output_manifest_path/data
image: example_component:latest
imagePullPolicy: Always
inputs:
artifacts:
- name: second-component-output_manifest_path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ spec:
- --output_manifest_path
- /tmp/outputs/output_manifest_path/data
image: example_component:latest
imagePullPolicy: Always
inputs:
artifacts:
- name: input_manifest_path
Expand Down Expand Up @@ -119,6 +120,7 @@ spec:
- --output_manifest_path
- /tmp/outputs/output_manifest_path/data
image: ghcr.io/ml6team/image_cropping:dev
imagePullPolicy: Always
inputs:
artifacts:
- name: first-component-output_manifest_path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ spec:
- --output_manifest_path
- /tmp/outputs/output_manifest_path/data
image: example_component:latest
imagePullPolicy: Always
resources:
limits:
nvidia.com/gpu: 1
Expand Down

0 comments on commit 43b0e39

Please sign in to comment.