Run
job.run()
job.run()
Example Usage
const job = pulse.create('test', {});
job.run()
.then(() => console.log('Job execution completed.'))
.catch(error => console.error('Job execution failed:', error));
Parameters
Returns
Promise<Job>
: A promise that resolves with the job instance after execution, whether successful or not. This method handles both successful completion and errors internally, ensuring the job's state is updated accordingly.
Last updated
Was this helpful?