4.1.13. taskrun

Description

Executes the specified task.

Usage

bw taskrun TASK [DEFINES]

  • TASK is the name or path of a periodic task plugin.
  • DEFINES are optional arguments used by the task. The format is: -Dname=value

Ant Usage

<bw.taskrun task="${task}">
   <define name="..." value="..." />
   <define name="..." value="..." />
</bw.taskrun>

Examples

# Run the log archiving task, overriding the default value of archive.olderthan
bw taskrun archivelogs -Darchive.olderthan=3
# Run the 'daily' task using the 'bw' executable in the work directory
# This does an auto-load of BundleWorks, which is useful for cron and machine startup
/local/bundleworks/work/bin/bw taskrun daily

Notes

  • There are tasks available for archiving logs and for running hourly, daily, weekly, and monthly hooks within deployed bundles.
  • Custom tasks can be written as BundleWorks plugins.
  • The reference section Tasks lists all tasks and their defines.