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

Implement Cron #72

Open
jonpugh opened this issue Jul 23, 2015 · 2 comments
Open

Implement Cron #72

jonpugh opened this issue Jul 23, 2015 · 2 comments

Comments

@jonpugh
Copy link
Member

jonpugh commented Jul 23, 2015

We need a nice common way of running cron.

I do not know yet if it would be best to run it on the host or in the container.

The drush container could have cron setup within it.

Let's take inspiration from platform.sh: https://github.com/platformsh/platformsh-examples/blob/drupal/7.x/.platform.app.yaml#L42

# The configuration of scheduled execution.
crons:
    drupal:
        spec: "*/20 * * * *"
        cmd: "cd public ; drush core-cron"
@john-binaryfeline
Copy link

I don't see how this can not be in the container. Containers should be redeployable to as yet unknown PaaS solutions, right? Since cron is part of the total app solution, it has to be in the container. Have I misunderstood the intent?

@jonpugh
Copy link
Member Author

jonpugh commented Jul 24, 2015

Very good point. We should put things into the containers as much as possible.

We do make some assumptions about the code being on the host and mounted via volume, but whenever possible, we should put things inside the container.

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

No branches or pull requests

2 participants