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

local_scheduler: add local_cwd scheduler + improve default handling #203

Closed
wants to merge 1 commit into from

Conversation

d4l3k
Copy link
Member

@d4l3k d4l3k commented Sep 24, 2021

  • local_cwd: This adds a new scheduler/image provider that overrides the image with the current working directory. This is intended to be a better approach for local launching since it doesn't require interacting with the images.
  • This removes local_dir scheduler in favor of local_cwd.
  • Changes how the default scheduler is specified since it's unclear what default even means without looking at the code and instead the CLI specifies the default via argparse default.
  • Updates the documentation to use local_cwd and local_docker instead.

Test plan:

$ pytest
$ pyre
$ env O="--port 4444" make clean livehtml

Go to quickstart page and ensure command run without any changes.

CI

@facebook-github-bot
Copy link
Contributor

@d4l3k has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 24, 2021
@facebook-github-bot
Copy link
Contributor

@d4l3k has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@d4l3k has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@d4l3k has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

…203)

Summary:
* `local_cwd`: This adds a new scheduler/image provider that overrides the image with the current working directory. This is intended to be a better approach for local launching since it doesn't require interacting with the images.
* This removes `local_dir` scheduler in favor of `local_cwd`.
* Changes how the default scheduler is specified since it's unclear what `default` even means without looking at the code and instead the CLI specifies the default via argparse default.
* Updates the documentation to use local_cwd and local_docker instead.

Pull Request resolved: #203

Test Plan:
```
$ pytest
$ pyre
$ env O="--port 4444" make clean livehtml
```

Go to quickstart page and ensure command run without any changes.

CI

Reviewed By: aivanou

Differential Revision: D31178356

Pulled By: d4l3k

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants