openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
http://openfoodfacts.github.io/openfoodfacts-server/
GNU Affero General Public License v3.0
652 stars 379 forks source link

Publish CRON file on GitHub? #1673

Open CharlesNepote opened 5 years ago

CharlesNepote commented 5 years ago

Summary:

As an OFF dev I don't know what and when cron jobs are running:

And I can't "pull request" to suggest modifications of actual cron jobs.

Expected behavior:

At least create a cron tab dedicated to OFF app -- say /etc/cron.d/off.txt -- and merge this file on Github (in ./conf ?) each time it is modified.

Instead we could to do more and make a symbolic link between a file published on Github (source) and /etc/cron.d/off.txt (link), but we have to think about security issues.

VaiTon commented 5 years ago

@stephanegigandet any thoughts on this?

CharlesNepote commented 5 years ago

Not sure it's a good idea, you can close if you think it's not relevant.

hangy commented 5 years ago

I think that would be a good idea. Ideally, a new OFF server (physical or VM) could be set up with something like Saltstack/Ansible/Puppet/…, including the crontabs for data exports.