1.0.1releasedCron
Commands to expose CRON like functionality via the Symphony Shell extension.
Clone URLhttps://github.com/symphonists/cron.git
Add as a submodulegit submodule add https://github.com/symphonists/cron.git extensions/cron --recursive
Compatibility
2.x.x | 2.1.x | 2.2.x | 2.3.x | 2.4.x | 2.5.x | 2.6.x | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.7.4 | 2.7.5 | 2.7.6 | 2.7.7 | 2.7.8 | 2.7.9 | 2.7.10 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
No | No | No | No | No | No | 1.0.1 | No | No | No | No | No | No | No | No | No | No | No |
Readme
Symphony Cron
- Version: 1.0.1
- Author: Alistair Kearney ([email protected])
- Release Date: 28th July 2015
- Requirements: Symphony 2.6.x, Shell Extension 1.0.2 (https://github.com/pointybeard/shell)
A system for automating tasks via the Symphony shell extension and cron.
Installation and Setup
Ensure that the Symphony Shell extension has been installed first.
Upload the 'cron' folder to your Symphony 'extensions' folder.
Create a folder called 'cron' inside
/manifest
. Ensure that it is writable by PHPEnable it by selecting "Cron", choose Enable from the
with-selected
menu, then click Apply.(Optional) Create a crontab entry (crontab -e) that executes the command "symphony -t XXX -e cron -c runTasks"
Usage
Use the 'Cron' interface in the Admin, found under the 'System' menu to create and edit tasks. Newly created tasks are stored in /manifest/cron
, making them suitable for version control.
Anytime the runTasks
command is executed via the command line, all pending tasks (those due for execution) will be run. This process can be automated with an entry in your server's crontab
.
It is also possible to create tasks manually.
Creating a task manually
Create a file with a unique name and extenion of
.task
(e.g.???.task
) and place it in/manifest/cron
The contents must be XML and is formatted as follows:
xml
<task>
<command>ls -lah</command>
<name>I am a nice name</name>
<description>I am an optional description</description>
<interval type="minute|hour|day|week">45</interval>
<start>2009-08-21 07:45am</start>
<finish>2009-09-13 1215</finish>
</task>
3. Browse to System > Cron
in the Symphony Administration
- Enable the newly created Cron task
Version history
Requires Symphony 2.6
- Maintenance. Cleaned up Readme and meta. Merged changes from symphonists/cron
Requires Symphony 2.6
- Updated for Symphony 2.6.x
Works up to Symphony 2.0.6
- Initial release
Symphony 2.0.7 to 2.0.x