Skip to content

Commit 8bddd95

Browse files
Merge pull request #3185 from thomaschaaf/patch-1
docs(schedule): add waitForCompletion
2 parents f5e3e3c + 4058eb0 commit 8bddd95

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/techniques/task-scheduling.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ Also, you can supply additional options as the second parameter to the `@Cron()`
144144
This allows you to specify the offset of your timezone rather than using the <code>timeZone</code> param.
145145
</td>
146146
</tr>
147+
<tr>
148+
<td><code>waitForCompletion</code></td>
149+
<td>
150+
If <code>true</code>, no additional instances of the cron job will run until the current onTick callback has been completed. Any new scheduled executions that occur while the current cron job is running will be skipped entirely.
151+
</td>
152+
</tr>
147153
<tr>
148154
<td><code>disabled</code></td>
149155
<td>

0 commit comments

Comments
 (0)