diff --git a/gitbook/docs/managing-jobs/manually-working/repeatevery-5.md b/gitbook/docs/managing-jobs/manually-working/repeatevery-5.md index 1d805c8..2fbb80a 100644 --- a/gitbook/docs/managing-jobs/manually-working/repeatevery-5.md +++ b/gitbook/docs/managing-jobs/manually-working/repeatevery-5.md @@ -1,13 +1,9 @@ # Touch - - ## `job.touch(progress?)` {% hint style="info" %} The `touch` method updates the `lockedAt` timestamp of a job to the current time. This is particularly useful for ensuring that a job remains locked during long-running processes, preventing it from being considered as timed out or available for reprocessing by other workers or job instances. - - {% endhint %} ### Example Usage @@ -15,26 +11,15 @@ The `touch` method updates the `lockedAt` timestamp of a job to the current time {% code fullWidth="false" %} ```typescript const job = pulse.create('test', {}); -job.touch(); +job.touch(10); ``` {% endcode %} ### Parameters -* **`progress`** (`number`): An optional argument that indicates progress value for the proceeding task. - -\ - +* **`progress`** (`number?`): An optional argument that indicates progress value for the proceeding task. ### Returns * **`Promise`**: A promise that resolves with the updated job instance after the `lockedAt` time has been refreshed and the job has been saved. -\ - - -\ - - - -