Coder Social home page Coder Social logo

Comments (4)

anteo avatar anteo commented on August 14, 2024

Custom workflows are not intended to run cron jobs. It runs only when issue updated/created.
If you want to run your own code in cron job, consider writing rake task. It's quite simple
Look into redmine/lib/tasks, there are some examples. Just create your own *.rake file, define task name, description and insert your code in task block

from redmine_custom_workflows.

anteo avatar anteo commented on August 14, 2024

Then you can run rake task (from console or from crontab) with

 rake <task_name>

from redmine_custom_workflows.

pyroit avatar pyroit commented on August 14, 2024

ok thank you very much

from redmine_custom_workflows.

pyroit avatar pyroit commented on August 14, 2024

CustomWorkflow.rake.txt but here redmine/lib/tasks (remove the .txt ending)

This can be called via corn or from the terminal. I created a user to trigger an custom workflow event. But any observable object can be used.

Upate: cron for every minute (you may need to adjust the path to the rake file
*/1 * * * * cd /usr/share/redmine/lib/tasks/ && /usr/local/bin/rake redmine:update_user_7 RAILS_ENV="production"

from redmine_custom_workflows.

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.