# Does $event-\>setResult(false) create a failure notification in the web interface?

**URL:** https://forum.mautic.org/t/does-event-setresult-false-create-a-failure-notification-in-the-web-interface/15020
**Category:** Development
**Created:** [June 30, 2020, 5:41pm UTC](https://forum.mautic.org/t/does-event-setresult-false-create-a-failure-notification-in-the-web-interface/15020 "2020-06-30T17:41:15Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![danielhilst](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/danielhilst/32/2132_2.png) [@danielhilst](https://forum.mautic.org/u/danielhilst)
#### Post date: [July 2, 2020, 6:21pm UTC](https://forum.mautic.org/t/does-event-setresult-false-create-a-failure-notification-in-the-web-interface/15020/2 "2020-07-02T18:21:41Z")

</div>

Just to update, I track down the pending actions count to this query

```auto
SELECT
  o.event_id, count(o.lead_id) as lead_count, o.non_action_path_taken
FROM
  mautic_campaign_lead_event_log o
LEFT JOIN
  mautic_campaign_leads l ON l.campaign_id = 44 and
  l.manually_removed = 0 and
  o.lead_id = l.lead_id and
  l.rotation = o.rotation
WHERE
  (o.campaign_id = 44) AND
  (NOT EXISTS (
      SELECT null
      FROM mautic_campaign_lead_event_failed_log fe
      WHERE fe.log_id = o.id)
  ) GROUP BY o.event_id, o.non_action_path_taken

```

It seems that we need a _long running task_ concept, for tasks that will take more than one action run to complete, that do not failed, or succeeded, yet. That would help for such cases. Anyway I’m not 100% sure that I got the entire picture here, so a word of the devs would be valuable, does `$event->setResult(false)` create an entry in `campaign_lead_event_failed_log`? Is there a way to retry an action without creating such entry (if it does create)?

From what I could grasp from that query, it doesn’t consider as completed an action that has entries in the `campaign_lead_event_failed_log` is that right?

---

_[View the full topic](https://forum.mautic.org/t/does-event-setresult-false-create-a-failure-notification-in-the-web-interface/15020)._
