Enable
pulse.enable(query)
pulse.enable(query)Example Usage
const pulse = new Pulse();
// Example of enabling all jobs that were disabled for a maintenance window
const maintenanceQuery = { reason: 'maintenance' };
pulse.enable(maintenanceQuery)
.then(modifiedCount => console.log(`${modifiedCount} jobs re-enabled after maintenance`))
.catch(error => console.error('Failed to enable jobs:', error));Parameters
Returns
Last updated