Stephen Ficklin a9bcbcd4c8 Issue #72: Updating API to include 2.1 improvements: eca6739 преди 8 години
..
includes 7bd8a670d8 Daemon: implemented parallel processing although there's currently no way to turn it on. преди 8 години
theme 135a4600b5 Added Tripal Job Daemon Log block преди 8 години
.gitattributes 5c9d12433d Added gitattributes to fix github language detection преди 10 години
README.md 716a45902d Added markup version of readme преди 10 години
README.txt 39af880607 Updated to work with Drush Daemon API (drushd) преди 11 години
TripalDaemon.inc a9bcbcd4c8 Issue #72: Updating API to include 2.1 improvements: eca6739 преди 8 години
tripal_daemon.drush.inc 72a733810b Exposed support for Parallel jobs to Tripal Daemon. преди 8 години
tripal_daemon.info 475c18bf1a Make daemon compatible with Tripal 3 преди 8 години
tripal_daemon.module f49424f41b Added tripal daemon admin status block. преди 8 години

README.md

Tripal Daemon

This module is meant to provide a simple means of creating a robust command-line-driven, fully bootstrapped PHP Daemon. It uses the PHP-Daemon (https://github.com/shaneharter/PHP-Daemon) Library to create the Daemon (via the Libraries API) in order to not re-invent the wheel ;-).

FEATURES

  • Provides a Drush interface to start/stop your Daemon.
  • Your daemon starts in the background and is detached from the current terminal.
  • Daemon will run all Tripal Jobs submitted within 20 seconds.
  • A log including the number of jobs executed, their identifiers and results.
  • Lock Files, Automatic restart (8hrs default) and Built-in Signal Handling & Event Logging are only a few of the features provided by the Daemon API making this a fully featured & robust Daemon.

REQUIREMENTS

INSTALLATION

  • Install all required modules as per their instructions.
  • Install this module as you would normally install a contributed drupal module. See:https://drupal.org/documentation/install/modules-themes/modules-7 for further information.
  • Download the PHP-Daemon Library and extract it in your sites/all/libraries directory. The folder must be named "PHP-Daemon".

TRIPAL DAEMON USAGE

  • Start Daemon drush trpjob-daemon start
  • Stop Daemon drush trpjob-daemon stop
  • Check the Status drush trpjob-daemon status
  • Show the Log
    • List the last 10 lines of the log file: drush trpjob-daemon show-log
    • List the last N lines of the log file: drush trpjob-daemon show-log --num_lines=N