function stopRecurrentTask (taskName) {
        if (!(taskName in recurrentTasks)) {
            log.warn({task_name: taskName}, 'Task name does not run')
            return
        }
        let recurrentTask = recurrentTasks[taskName]
        if (recurrentTask.timer_id) clearInterval(recurrentTask.timer_id)
        recurrentTask.timer_id = null
        recurrentTask.enabled = false
        if (recurrentTask.running) {
            recurrentTask.running = false
            log.info(recurrentTask, 'Cleared recurrent task while it was running')
        }
        recurrentTask.failures = 0
    }
/**
     * Stop running the recurrent task with the provided identifier.
     *
     * A warning is logged if no task with that identifier is found
     *
     * @param recurrentTask the name of the task to stop
     */
Stop running the recurrent task with the provided identifier.
A warning is logged if no task with that identifier is found

@param recurrentTask the name of the task to stop
Stop running the recurrent task with the provided identifier . A warning is logged if no task with that identifier is found @param recurrentTask the name of the task to stop
function stopRecurrentTask (taskName) {
        if (!(taskName in recurrentTasks)) {
            log.warn({task_name: taskName}, 'Task name does not run')
            return
        }
        let recurrentTask = recurrentTasks[taskName]
        if (recurrentTask.timer_id) clearInterval(recurrentTask.timer_id)
        recurrentTask.timer_id = null
        recurrentTask.enabled = false
        if (recurrentTask.running) {
            recurrentTask.running = false
            log.info(recurrentTask, 'Cleared recurrent task while it was running')
        }
        recurrentTask.failures = 0
    }
function stopRecurrentTask ( taskName ) { if ( ! ( taskName in recurrentTasks ) ) { log . warn ( { task_name : taskName } , 'Task name does not run' ) return } let recurrentTask = recurrentTasks [ taskName ] if ( recurrentTask . timer_id ) clearInterval ( recurrentTask . timer_id ) recurrentTask . timer_id = null recurrentTask . enabled = false if ( recurrentTask . running ) { recurrentTask . running = false log . info ( recurrentTask , 'Cleared recurrent task while it was running' ) } recurrentTask . failures = 0 }
Stop running the recurrent task with the provided identifier.
Stop running the recurrent task with the provided identifier .