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

add astro airflow pause #21

Merged
merged 1 commit into from Feb 21, 2018
Merged

add astro airflow pause #21

merged 1 commit into from Feb 21, 2018

Conversation

andscoop
Copy link
Contributor

Closes #18 and #5

@andscoop andscoop requested a review from schnie February 21, 2018 01:59
// createProjectFromContext creates project with yaml config as context
func createProjectFromContext(projectName, airflowHome string) (project.APIProject, error) {
// fetchDockerProject creates project with yaml config as context
func fetchDockerProject(projectName, airflowHome string) (project.APIProject, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

still not sure about the naming of this func

Copy link
Member

Choose a reason for hiding this comment

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

Yea, how about just createProject?


if len(psInfo) > 0 {
// Ensure project is not alreasdy running
for _, info := range psInfo {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Prevents a user from running start and having a hard error on an already running project.

if len(psInfo) > 0 {
// Ensure project is not alreasdy running
for _, info := range psInfo {
if info["State"][0:2] == "Up" {
Copy link
Member

Choose a reason for hiding this comment

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

Wonder if there's a constant for "Up" in libcompose. If not, oh well.

// createProjectFromContext creates project with yaml config as context
func createProjectFromContext(projectName, airflowHome string) (project.APIProject, error) {
// fetchDockerProject creates project with yaml config as context
func fetchDockerProject(projectName, airflowHome string) (project.APIProject, error) {
Copy link
Member

Choose a reason for hiding this comment

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

Yea, how about just createProject?

@andscoop andscoop force-pushed the feature/add-astro-airflow-pause branch 2 times, most recently from ee95d9b to bc76709 Compare February 21, 2018 20:14
@andscoop andscoop force-pushed the feature/add-astro-airflow-pause branch from bc76709 to 69bdca6 Compare February 21, 2018 20:16
@andscoop
Copy link
Contributor Author

@schnie made requested changes This should be good to go

@schnie schnie merged commit 2ad49b5 into master Feb 21, 2018
@andscoop andscoop deleted the feature/add-astro-airflow-pause branch April 18, 2018 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants