Skip to content

Commit d6899bf

Browse files
committed
Documentation update
1 parent f759f70 commit d6899bf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ To use it, you have to enable contrib recipes on your project : `composer config
3737
- Monitoring with timeout or failed commands (Json URL and command with mailing)
3838
- Translated in french, english, german and spanish
3939
- An [EasyAdmin](https://github.com/EasyCorp/EasyAdminBundle) configuration template available [here](Resources/doc/index.md#6---easyadmin-integration)
40+
- **Beta** - Handle commands with a deamon (unix only) if you don't want to use a cronjob
4041

4142
## Screenshots
4243
![list](Resources/doc/images/scheduled-list.png)

Resources/doc/index.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ From this screen, you can do following actions :
194194

195195
When creating a new scheduling, you can provide your commands arguments and options exactly as you wold do from the console. Remember to use quotes when using arguments and options that includes white spaces.
196196

197-
After that, you have to set (every few minutes, it depends of your needs) the following command in your system crontab :
197+
After that, **you have to set (every few minutes, it depends of your needs) the following command in your system crontab** :
198198
``` bash
199199
$ php bin/console scheduler:execute --env=env -vvv [--dump] [--no-output]
200200
```
@@ -215,6 +215,9 @@ The `scheduler:execute` command will do following actions :
215215
The `scheduler:unlock` command is capable of unlock all or a single scheduled command with a `lock-timeout` parameter.
216216
It can be usefull if you don't have a full control about server restarting, which can a command in a lock state.
217217

218+
**Deamon (Beta)** : If you don't want to set up a cron job, you can use `scheduler:start` and `scheduler:stop` commands.
219+
This commands manage a deamon process that will call `scheduler:execute` every minute. It require the `pcntl`php extension.
220+
Note that with this mode, if a command with an error, it will stop all the scheduler.
218221

219222
**Note** : Each command is locked just before his execution (and unlocked after).
220223
This system avoid to have simultaneous process for the same command.

0 commit comments

Comments
 (0)