scheduler names can only be used once - executor needs to be removed

Description

I'm trying to play with creating schedulers in CommandBox as part of task runners, but they only work once. After I shut down a scheduler at the end of a task and run the task again to create a fresh scheduler, I just get the old scheduler which is shutdown and will not accept any new tasks which basically forces me to create random scheduler names which isn't really ideal.

Here's a sample CommandBox task runner. It will work great the first time you run it, but fail on all subsequent tries without reloading the entire shell (which cycles WireBox)

Activity

Show:

Brad WoodSeptember 27, 2021 at 7:17 PM

After further review, the scheduler’s shutdown() method needs to delete the executor from the asycmanager after it shuts it down.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Fix versions

Priority

Sentry

Created September 27, 2021 at 6:40 PM
Updated November 12, 2021 at 3:43 PM
Resolved November 12, 2021 at 3:43 PM