Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Kill all cron #30

Open
priegger opened this issue Sep 6, 2018 · 0 comments
Open

Kill all cron #30

priegger opened this issue Sep 6, 2018 · 0 comments
Labels
conceptual This issue is just a draft yet and needs more conceptual work enhancement New feature or request

Comments

@priegger
Copy link
Collaborator

priegger commented Sep 6, 2018

Is your feature request related to a problem? Please describe.
A lot is done using crontabs right now: polling docker for new images, time-based deployments, ...

Spacegun could be a lot simpler and easier to test if it did not have cron support but used hooks (webhooks) as triggers. That way git commits or docker pushes could directly trigger actions and no polling would be necessary. In case of time-based deployments, web cron or the system crontab and the cli can be used.

Describe the solution you'd like

  • Get rid of cron, replace it with web hooks for all necessary triggers.
  • Provide documentation for the hooks and examples, how to use web cron or maybe Docker containers with cron to trigger actions.

Describe alternatives you've considered
Keep the complexity:

  • Keep cron and fix the flaky tests.
  • Provide the hooks as an alternative to the cron feature.

Additional context

  • It might be nice to have a well documented external cron tool. Maybe a crontab (file) with a default configuration or a docker container which triggers the hooks using the cli or a web endpoint.
  • Authentication for some of the hooks will be necessary (trigger, which image should be deployed).
@priegger priegger added the enhancement New feature or request label Sep 6, 2018
@dvallin dvallin added the conceptual This issue is just a draft yet and needs more conceptual work label Sep 6, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
conceptual This issue is just a draft yet and needs more conceptual work enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants