Git Product home page Git Product logo

Comments (4)

sameersbn avatar sameersbn commented on July 21, 2024

@kstange I added the following to the plugins/init script

crontab -u redmine -l 2>/dev/null >/tmp/cron.redmine
echo '* * * * * date >> /tmp/date.log' >>/tmp/cron.redmine
crontab -u redmine /tmp/cron.redmine 2>/dev/null
rm -rf /tmp/cron.redmine

I can see that the date is being output to the /tmp/date.log file every minute. Can you try this?

As a side note, the example cron for the recurring tasks plugin in your documentation is set to run at * */4 * * * which is once per minute for an hour, every 4 hours. I chose 15 */4 * * * for a more reasonable schedule.

This line is directly taken from the recurring_tasks readme. You are free to choose whatever schedule you desire.

from docker-redmine.

kstange avatar kstange commented on July 21, 2024

I meant that the line on the recurring_tasks readme is an insane example and that I would recommend not advising people to use it! I was planning to contact the recurring_tasks maintainer to suggest the same.

Date is working correctly. I think that the problem is that the cron PATH value is set to

PATH='/usr/bin:/bin'

bundle is in /usr/local/bin/

So the correct revision should be:

15 */4 * * * cd /home/redmine/redmine && /usr/local/bin/bundle exec rake redmine:recur_tasks RAILS_ENV=production >> log/cron_rake.log 2>&1

from docker-redmine.

sameersbn avatar sameersbn commented on July 21, 2024

@kstange ahhh... does that work for you. If yes, then I will update the readme.

from docker-redmine.

kstange avatar kstange commented on July 21, 2024

@sameersbn Yes, it works now! Thanks.

from docker-redmine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.