Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

delay import for discache #185

Closed
wants to merge 1 commit into from

Conversation

wat3rBro
Copy link
Contributor

@wat3rBro wat3rBro commented Mar 3, 2022

Summary: The DiskCachedDatasetFromList was originally in the d2go/data/utils.py, so the class is declared by default. Therefore the clean up call (https://fburl.com/code/cu7hswhx) is always called even when the feature is not enabled. This diff move it to a new place and delay the import, so the clean up won't run.

Differential Revision: D34601363

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Mar 3, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D34601363

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D34601363

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D34601363

wat3rBro added a commit to wat3rBro/d2go that referenced this pull request Mar 3, 2022
Summary:
Pull Request resolved: facebookresearch#185

The `DiskCachedDatasetFromList` was originally in the `d2go/data/utils.py`, so the class is declared by default. Therefore the clean up call (https://fburl.com/code/cu7hswhx) is always called even when the feature is not enabled. This diff move it to a new place and delay the import, so the clean up won't run.

Differential Revision: D34601363

fbshipit-source-id: 0754260eeaf335dc0b84ef97525c63e11423b809
Summary:
Pull Request resolved: facebookresearch#185

The `DiskCachedDatasetFromList` was originally in the `d2go/data/utils.py`, so the class is declared by default. Therefore the clean up call (https://fburl.com/code/cu7hswhx) is always called even when the feature is not enabled. This diff move it to a new place and delay the import, so the clean up won't run.

Reviewed By: tglik

Differential Revision: D34601363

fbshipit-source-id: 2e56035361be1a53ebab831f5a98c9862a18b39c
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D34601363

wat3rBro added a commit to wat3rBro/d2go that referenced this pull request Mar 4, 2022
Summary:
Pull Request resolved: facebookresearch#185

The `DiskCachedDatasetFromList` was originally in the `d2go/data/utils.py`, so the class is declared by default. Therefore the clean up call (https://fburl.com/code/cu7hswhx) is always called even when the feature is not enabled. This diff move it to a new place and delay the import, so the clean up won't run.

Differential Revision: D34601363

fbshipit-source-id: c1cfc4c7c3799dbc8f21bd58502d2669307f1652
wat3rBro added a commit to wat3rBro/d2go that referenced this pull request Mar 4, 2022
Summary:
Pull Request resolved: facebookresearch#185

The `DiskCachedDatasetFromList` was originally in the `d2go/data/utils.py`, so the class is declared by default. Therefore the clean up call (https://fburl.com/code/cu7hswhx) is always called even when the feature is not enabled. This diff move it to a new place and delay the import, so the clean up won't run.

Differential Revision: D34601363

fbshipit-source-id: cec2420baf9fb2910c5241af57e6527acdc94962
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants