Git Product home page Git Product logo

task's Introduction

Task module

Status: beta (testing)

An emonCMS module that allows to create Process Lists that get triggered at specific times (aka Tasks). It consist in an UI accessible through emonCMS and a cron task that run the task that are due.

Installation

As any other module: clone this repository in the Modules directory of your emonCMS installation and update database. You also need to update your emonCMS from here: emonCMS with Task Module support

Features

  • Create tasks
  • Specify frequency for running the task: only once, once a month or every certain number of weeks, days, hours or minutes
  • Set Next Run date and time manually
  • Enable/ disable tasks
  • Run a task with one click (even if it is disabled and without updating the Next Run date and time)
  • New process to check when a feed or input was last updated
  • New processes for getting inputid and feedid (should go before any of the processes in the previous bullet)

Task Cron setup

The aim of the Task Module is to run the tasks automatically when they are enabled and it is the time to do so. The script tasks_cron.php is the one that runs them. It is intended to be a cron job (Linux) or a scheduled task (Windows) so that the schedule can be run periodically.

To add the cron entry to crontab manually, first open crontab with:

sudo crontab -e

Then add the following line:

* * * * * php /var/www/emoncms/Modules/task/task_cron.php >> /var/log/emoncms-task.log

This assumes your emonCMS installation is in /var/www/emoncms. The cron job checks every 5s (or different if $task_cron_frequency defined in settings.php) for tasks that need to be run. Note: ensure permissions for lockfile are 666

Future developments (who knows when)

  • Add group support: this would allow access to group user's feeds. Useful for calculating aggregation feeds (this can currently be done from groups module view)

task's People

Contributors

cagabi avatar glynhudson avatar trystanlea avatar

Watchers

 avatar  avatar James Cloos avatar  avatar  avatar

Forkers

pb66 reedy

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.