forked from AOEpeople/Aoe_Scheduler
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Fabrizio Branca
committed
Mar 10, 2015
1 parent
38170a4
commit fb163de
Showing
3 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## How to integrate Aoe_Scheduler into you deployment process | ||
|
||
When deploying a new build to your server some tasks might still be running in the background. Here's a simple workflow to make a clean cut: | ||
|
||
```shell | ||
# Disable cron processing (here: using n98-magerun). This will not affect tasks that are currently running | ||
cd $rootDir && n98-magerun.phar config:set system/cron/enable 0 | ||
|
||
# Flush all future schedules (so that no new schedule get's started) | ||
cd $rootDir/shell && php scheduler --action flushSchedules --mode future | ||
|
||
# Actively wait until current schedules finish for up to 1 minute (or longer if required): | ||
cd $rootDir/shell && php scheduler --action wait --timout 60 | ||
|
||
# Kill all tasks that might still be running | ||
cd $rootDir/shell && php scheduler --action killAll | ||
|
||
# Deploy! | ||
|
||
# Enable cron processing (here: using n98-magerun) | ||
cd $rootDir && n98-magerun.phar config:set system/cron/enable 1 | ||
|
||
# New schedules will automatically be generated before the next run... | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters