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

Initialize datastore_root from cli args in cli.step(...) #134

Merged
merged 2 commits into from Feb 18, 2020
Merged

Initialize datastore_root from cli args in cli.step(...) #134

merged 2 commits into from Feb 18, 2020

Conversation

@savingoyal
Copy link
Member

savingoyal commented Feb 18, 2020

Gitter thread - https://gitter.im/metaflow_org/community?at=5e4b8e24d56ddb68a4aff877

Metaflow initializes datastore_root to fetch user code in step command. The behaviour defaults to relying on METAFLOW_DATASTORE_SYSROOT_S3 environment variable to initialize datastore_root. This patch checks if --datastore_root cli arg can be used instead.

Gitter thread - https://gitter.im/metaflow_org/community?at=5e4b8e24d56ddb68a4aff877

Metaflow initializes datastore_root to fetch user code in `step`
command. The behaviour defaults to relying on METAFLOW_DATASTORE_SYSROOT_S3
environment variable to initialize datastore_root. This patch checks if
--datastore_root cli arg can be used instead.
@savingoyal savingoyal requested a review from tuulos Feb 18, 2020
if datastore_root is None:
datastore_root = ctx.obj.datastore.get_datastore_root_from_config(echo)
Comment on lines 769 to 770

This comment has been minimized.

Copy link
@seeravikiran

seeravikiran Feb 18, 2020

Contributor

Discussed offline - I think each of the terminal commands like step, dump etc. probably handle if datastore_root is None so we should be able to safely remove this if check.

This comment has been minimized.

Copy link
@savingoyal

savingoyal Feb 18, 2020

Author Member

Made the change.

@savingoyal savingoyal merged commit 84b3390 into master Feb 18, 2020
2 checks passed
2 checks passed
Test on ubuntu-latest
Details
Test on macos-latest
Details
@savingoyal savingoyal deleted the cli branch Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.