Skip to content

Commit 0447033

Browse files
authored
docs(schedule): add waitForCompletion
docs for https://github.com/nestjs/schedule/pull/1870/files
1 parent d901606 commit 0447033

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 cronjob will run until the current onTick callback has completed. Any new scheduled executions that occur while the current cronjob 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)