Announcement

Collapse
No announcement yet.

Event question about Remove Delayed Execution of Event

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Event question about Remove Delayed Execution of Event

    I am not finding the option for "Remove Delayed Execution of Event" that you show in your event sample in the guide. I am using HS3. Is this an option in HS4? I am using "Run Event Monitored Device Full List" instead. It seems to me that it should work.

    #2
    Originally posted by noopara View Post
    I am not finding the option for "Remove Delayed Execution of Event" that you show in your event sample in the guide. I am using HS3. Is this an option in HS4? I am using "Run Event Monitored Device Full List" instead. It seems to me that it should work.
    The action is available in HS3 and HS4. In HS4 it is called 'Cancel a delayed event' in the drop down list which changes to 'Remove delayed execution of event' when you select it. I can't remember what it is listed as in HS3, but it is there.

    Steve

    Comment


      #3
      It is "Cancel a delayed event" in HS3 as well.

      Comment


        #4
        What I don't understand is what event is the delayed event? The event Monitored Device Full List is a manually triggered event. I have always used Run Another Event. I'm missing something here.

        Comment


          #5
          Originally posted by noopara View Post
          What I don't understand is what event is the delayed event? The event Monitored Device Full List is a manually triggered event. I have always used Run Another Event. I'm missing something here.
          It’s just a safeguard to cancel the delayed event if it had been run a few seconds earlier. If this event was triggered in quick succession you would get more than one version of the delayed event queued. There are other ways of doing this, it is just an example.

          Comment


            #6
            I think I see what you mean. If the event "Monitored Devices Alert" was running and then it was triggered again a second time while it was already running, it would have to wait (delayed) until the first event was done. So by using "Remove Delayed Execution of event it is preventing the report event from repeating shortly after it already ran. Is that correct?

            If I were to combine the two events into one event and set Cannot Re-Run For: 5 minutes wouldn't that take care of it?

            Comment


              #7
              Originally posted by noopara View Post
              I think I see what you mean. If the event "Monitored Devices Alert" was running and then it was triggered again a second time while it was already running, it would have to wait (delayed) until the first event was done. So by using "Remove Delayed Execution of event it is preventing the report event from repeating shortly after it already ran. Is that correct?

              If I were to combine the two events into one event and set Cannot Re-Run For: 5 minutes wouldn't that take care of it?
              Not exactly. It is cancelling any pending ‘Monitored Device Full List’ events before they run.

              If I remember correctly it is to cover a situation where several battery devices alert at the same time. This can occur if for example HS was shut down for a day. The pi staggers the alerts, and therefore triggers, by a preconfigurable interval of 2 seconds by default, I think.

              ​​​​​​​With the event configured as my example you will get the series of pushover notifications showing each device that alerts in turn at 2 sec intervals, followed by one full report by email 1 min after the final alert. If you rearranged into one event with a not rerun for 5 minutes then you would only get the first pushover alert and one full report that was incomplete because of the staggered alerts.

              Steve

              Comment


                #8
                OK. That makes sense. I have it configured with the two events per your example using the Then action Remove Delayed Execution of Event Device Monitor Full List. I still don't see what triggers the event Device Monitor Full List to run. Does your plug-in do this? Oops....I see it now. It's at the bottom of the event. I had to zoom in to see it.

                Comment


                  #9
                  I tried to thoroughly explain cancelling a delayed event here and about canceling a delayed device action here. Within each of those posts is a link to how delayed device actions and delayed events are created and handled.
                  HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

                  Comment


                    #10
                    Originally posted by noopara View Post
                    OK. That makes sense. I have it configured with the two events per your example using the Then action Remove Delayed Execution of Event Device Monitor Full List. I still don't see what triggers the event Device Monitor Full List to run. Does your plug-in do this? Oops....I see it now. It's at the bottom of the event. I had to zoom in to see it.
                    No problems 👍
                    Take a look at Randy’s links as he explains these methods in much more detail.

                    Steve

                    Comment

                    Working...
                    X