GithubHelp home page GithubHelp logo

rud5g / aoe_scheduler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aoepeople/aoe_scheduler

0.0 2.0 0.0 227 KB

Cron Scheduler Module for Magento

Home Page: http://www.fabrizio-branca.de/magento-cron-scheduler.html

aoe_scheduler's Introduction

AOE Scheduler for Magento

see http://www.fabrizio-branca.de/magento-cron-scheduler.html

Running multiple scheduler jobs in parallel

Running multiple scheduler jobs in parallel is quite handy when you have some jobs which take a long time to run, and are not crucial for shop to run properly. En excample could be a job which generates some kind of reports. Magento cron.sh script detects if there is some job already running by parsing output of "ps" command. If not, it executes cron.php file. So to run multiple schedulers in parallel we have to use different file name than cron.php. Additionally we want to run only few jobs with second cron task, and exclude them from the original scheduler job. Aoe Scheduler comes with whitelist/blacklist feature enabling you to do so.

  1. symlink cron.php to cron2.php
  2. add crontab configuration (crontab -e) like this:
          • /usr/bin/env SCHEDULER_BLACKLIST='job_key1,job_key2' /bin/sh /home/webapps/htdocs/cron.sh
          • /usr/bin/env SCHEDULER_WHITELIST='job_key1,job_key2' /bin/sh /home/webapps/htdocs/cron.sh cron2.php

cron.sh script takes name of the php script to run as a parameter (by default it is cron.php). This way the first cron job will execute all scheduler jobs except job_key1 and job_key2, and the second one will execute only them.

aoe_scheduler's People

Contributors

fbrnc avatar tmotyl avatar

Watchers

 avatar  avatar

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.