mirror of https://github.com/vapor/docs.git
Add `minutely()` helper function description to advanced -> queues (#784)
* Add `minutely()` helper function description to advanced -> queues * Update docs/advanced/queues.zh.md --------- Co-authored-by: Marcel Borsten <Marcel Borsten> Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
This commit is contained in:
parent
8be099d0a3
commit
9c45a750e8
|
|
@ -372,6 +372,7 @@ There are five main methods that can be called on a scheduler, each of which cre
|
|||
| | `at(_ hour: Hour24, _ minute: Minute)`| The hour and minute to run the job on. Final method in the chain. |
|
||||
| | `at(_ hour: Hour12, _ minute: Minute, _ period: HourPeriod)` | The hour, minute, and period to run the job on. Final method of the chain |
|
||||
| `hourly()` | `at(_ minute: Minute)` | The minute to run the job at. Final method of the chain. |
|
||||
| `minutely()` | `at(_ second: Second)` | The second to run the job at. Final method of the chain. |
|
||||
|
||||
### Available helpers
|
||||
Queues ships with some helpers enums to make scheduling easier:
|
||||
|
|
|
|||
|
|
@ -370,6 +370,7 @@ Er zijn vijf hoofdmethoden die aangeroepen kunnen worden op een scheduler, die e
|
|||
| | `at(_ hour: Hour24, _ minute: Minute)`| Het uur en de minuten om de job uit te voeren. Laatste methode in de keten. |
|
||||
| | `at(_ hour: Hour12, _ minute: Minute, _ period: HourPeriod)` | Het uur, de minuten en de periode om de job uit te voeren. Eindmethode van de keten |
|
||||
| `hourly()` | `at(_ minute: Minute)` | De minuut om de opdracht uit te voeren. De laatste methode van de ketting. |
|
||||
| `minutely()` | `at(_ second: Second)` | De seconde om de opdracht uit te voeren. De laatste methode van de ketting. |
|
||||
|
||||
### Beschikbare helpers
|
||||
Wachtrijen worden geleverd met enkele helpers enums om het plannen te vergemakkelijken:
|
||||
|
|
|
|||
|
|
@ -373,6 +373,7 @@ app.queues.schedule(CleanupJob())
|
|||
| | `at(_ hour: Hour24, _ minute: Minute)`| 运行 job 的小时和分钟。链中的最终方法。|
|
||||
| | `at(_ hour: Hour12, _ minute: Minute, _ period: HourPeriod)` |运行 job 的小时、分钟和时间段。链中的最终方法。|
|
||||
| `hourly()` | `at(_ minute: Minute)` |运行 job 的分钟。链中的最终方法。|
|
||||
| `minutely()` | `at(_ second: Second)` | 运行 job 的秒数。链中的最终方法。 |
|
||||
|
||||
### 可用辅助函数
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue