Skip to content

Commit

Permalink
GITBOOK-28: No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
code-xhyun authored and gitbook-bot committed May 6, 2024
1 parent 9bc1b7d commit 7e486c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gitbook/docs/managing-jobs/manually-working/repeatevery.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
## `job.repeatEvery(interval, options?)`

{% hint style="info" %}
The `repeatEvery` method schedules a job to repeat at a defined interval. It includes options to specify starting and ending dates, skip specific days, and adjust for time zones, providing flexibility in how and when the job recurs.
The `repeatEvery` method schedules a job to repeat at a defined interval. It includes options to specify starting and ending dates, skip specific days, and adjust for time zones, providing flexibility in how and when the job recurs.\


_This does **NOT** save the job in the database. you must explicitly declare_ [_`save()`_](save.md)_if you want to save it_
{% endhint %}

### Example Usage
Expand All @@ -14,6 +17,7 @@ The `repeatEvery` method schedules a job to repeat at a defined interval. It inc
```typescript
job.unique({ 'data.type': 'email', 'data.userId': '12345' });
await job.save(); // If you want to save it

```
{% endcode %}

Expand Down

0 comments on commit 7e486c1

Please sign in to comment.