Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Pipelines] Add doc on disabling default caching flag and env var #3880

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

DharmitD
Copy link
Contributor

Comment on lines 67 to 69
Environment Variable `KFP_DISABLE_EXECUTION_CACHING_BY_DEFAULT`. 

You can also set the default caching behavior by using the environment variable. When set to true, 1, or other truthy values, it will disable execution caching by default for all pipelines. When set to false or when absent, the default of caching enabled remains.\
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This Environment Variable KFP_DISABLE_EXECUTION_CACHING_BY_DEFAULT. looks misplaced.

How about the following?

Suggested change
Environment Variable `KFP_DISABLE_EXECUTION_CACHING_BY_DEFAULT`
You can also set the default caching behavior by using the environment variable. When set to true, 1, or other truthy values, it will disable execution caching by default for all pipelines. When set to false or when absent, the default of caching enabled remains.\
You can also set the default caching behavior by using the `KFP_DISABLE_EXECUTION_CACHING_BY_DEFAULT` environment variable. When set to true, 1, or other truthy values, it will disable execution caching by default for all pipelines. When set to false or when absent, the default of caching enabled remains.\

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'd taken it out but didn't get pushed by mistake. Updated now, thanks!

```
will result in `task_2` having caching disabled.

Note: Since Python initializes configurations during the import process, setting the KFP_DISABLE_EXECUTION_CACHING_BY_DEFAULT environment variable after importing pipeline components will not affect the caching behavior. Therefore, always set it before importing any Kubeflow Pipelines components.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Note: Since Python initializes configurations during the import process, setting the KFP_DISABLE_EXECUTION_CACHING_BY_DEFAULT environment variable after importing pipeline components will not affect the caching behavior. Therefore, always set it before importing any Kubeflow Pipelines components.
Note: Since Python initializes configurations during the import process, setting the `KFP_DISABLE_EXECUTION_CACHING_BY_DEFAULT` environment variable after importing pipeline components will not affect the caching behavior. Therefore, always set it before importing any Kubeflow Pipelines components.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, updated to add ``.

@DharmitD DharmitD changed the title Add doc on disabling default caching flag and env var [Pipelines]Add doc on disabling default caching flag and env var Sep 26, 2024
@DharmitD DharmitD changed the title [Pipelines]Add doc on disabling default caching flag and env var [Pipelines] Add doc on disabling default caching flag and env var Sep 26, 2024
@VaniHaripriya
Copy link

Looks good to me!

Copy link
Contributor

@hbelmiro hbelmiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@diegolovison
Copy link
Contributor

/lgtm

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hbelmiro

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit 7b7c037 into kubeflow:master Sep 26, 2024
6 checks passed
DharmitD added a commit to DharmitD/website that referenced this pull request Oct 9, 2024
DharmitD added a commit to DharmitD/website that referenced this pull request Oct 9, 2024
DharmitD added a commit to DharmitD/website that referenced this pull request Oct 9, 2024
google-oss-prow bot pushed a commit that referenced this pull request Oct 14, 2024
)

* Revert "[Pipelines] Specify KFP SDK version where new caching flag will be available (#3881)"

This reverts commit 090f09b.

Signed-off-by: ddalvi <[email protected]>

* Revert "[Pipelines] Add doc on disabling default caching flag and env var (#3880)"

This reverts commit 7b7c037.

Signed-off-by: ddalvi <[email protected]>

* Fix enable_caching option's comment typo

Signed-off-by: ddalvi <[email protected]>

---------

Signed-off-by: ddalvi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants