poshbotio / PoshBot

Powershell-based bot framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disabled Schedule is still running

pauby opened this issue · comments

When a scheduled task is disabled it still runs. Note !dadjoke was disabled a few days ago but I discovered I was running 0.11.7 so upgraded before reporting it.

image

Expected Behavior

When a task is disabled, it should not run.

Current Behavior

A disabled task still runs.

Possible Solution

Task should not run? :)

Steps to Reproduce (for bugs)

  1. Schedule a task.
  2. Disable the task.

Your Environment

  • Module version used: 0.11.8
  • Operating System and PowerShell version: Windows Server 2012 R2 / Windows PowerShell 5.1.14409.1005

Thanks @pauby. This is intended behavior. Dad jokes are always allowed to run 😄

Just kidding, of course. Thanks for reporting this. I'll take a look.

@pauby This should be fixed in 21d190a

I'll take this for a spin very shortly and confirm back.

@devblackops I have deployed this now and will let you know how it works.