TriggerReactor

TriggerReactor

24.6k Downloads

Thread tracking system

wysohn opened this issue ยท 1 comments

commented

Currently, most of the Triggers run asynchronously, and it is possible that for some cases, it may fall into an unintended infinite loop.

Or, maybe the administrator needs to shut down the running Trigger immediately for some reason.

This is not possible since the control for the Thread is gone as soon as the script is executed, and this is very inconvenient.

Add command which allows users to list, navigate, and kill the Trigger threads.

/trg task list [filters]
/trg task kill

commented

/trg tasks


  1. MyTrigger (CommandTrigger) [Id: UniqueHashCode]
    running time
  2. SomeTrigger (WalkTrigger) [Id: UniqueHashCode]
    running time
  3. TriggerTrigger (InventoryTrigger) [Id: UniqueHashCode]
    running time
    ...

/trg tasks kill [id]