Skip to content

Commit

Permalink
Docs: worker command is for interactive CLI only
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Apr 7, 2024
1 parent 2747416 commit 704f1ea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,9 @@ Options:

Run scheduler repeatedly, once every minute

> This command should be used only for local development and requires interactive CLI.
> In production environment should be used crontab with the [run command](#run-command).
`bin/console scheduler:worker`

- requires [proc_*](https://www.php.net/manual/en/ref.exec.php) functions to be enabled
Expand All @@ -922,6 +925,12 @@ Run scheduler repeatedly, once every minute
runCommand: scheduler:run
```

Options:

- `--script=<script>` (or `-s`) - script executed by worker (defaults to `bin/console`)
- `--command=<command>` (or `-c`) - command executed by worker (defaults to `scheduler:run`)
- `--force` - force run when non-interactive CLI is detected (!make sure you can terminate the worker!)

### Explain command

Explain cron expression syntax
Expand Down

0 comments on commit 704f1ea

Please sign in to comment.