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

Adding hooks to use dispatch/cron yamls if referenced with deploy #57

Merged
merged 2 commits into from
Jul 30, 2019

Conversation

jprobinson
Copy link
Contributor

Still need to verify it works, but looks to be a straightforward fix.

Copy link
Member

@tonglil tonglil left a comment

Choose a reason for hiding this comment

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

This LGTM

@tonglil tonglil requested a review from a team July 29, 2019 22:06
Copy link
Contributor

@oliver-nyt oliver-nyt left a comment

Choose a reason for hiding this comment

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

Change looks good but we should document this somewhere (README? in the config struct? ).

case vargs.CronFile != "":
args = append(args, "./cron.yaml")
default:
args = append(args, "./app.yaml")
Copy link
Member

Choose a reason for hiding this comment

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

It seems like these are mutually exclusive, is that true? Could we just detect which file is present?

Copy link
Contributor

Choose a reason for hiding this comment

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

@sbower all files may be present but the user can chose to use only some of them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think folks could point the app_file config at a dispatch/cron file and the tool would use it, but it may be a bit confusing since the other two configs already exist.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've updated some docs to clarify

main.go Show resolved Hide resolved
@jprobinson jprobinson merged commit 2e79277 into master Jul 30, 2019
@jprobinson jprobinson deleted the dispatch branch July 30, 2019 17:14
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.

5 participants