# Instead of triggering a reminder, this: "Canceled reminder because it is outdated"

**URL:** <https://forum.rasa.com/t/instead-of-triggering-a-reminder-this-canceled-reminder-because-it-is-outdated/33359>\
**Category:** Rasa Open Source\
**Created:** [September 3, 2020, 7:13pm UTC](https://forum.rasa.com/t/instead-of-triggering-a-reminder-this-canceled-reminder-because-it-is-outdated/33359 "2020-09-03T19:13:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![s0288](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/s0288/32/10837_2.png) [@s0288](https://forum.rasa.com/u/s0288)\
**Post date:** [September 3, 2020, 7:13pm UTC](https://forum.rasa.com/t/instead-of-triggering-a-reminder-this-canceled-reminder-because-it-is-outdated/33359/1 "2020-09-03T19:13:49Z")

</div>

Hi, my action server sends ReminderScheduled when I set it to anything close to the original tracking event (anything between 10 secs to 10 mins).

But it is not sending, when I set it to 4 hours or 16 hours.

Here is my log file for the 4 hour case:

At reminder creation:

> ```
> 2020-09-02 19:34:06 DEBUG rasa.core.processor - Predicted next action 'action_set_reminder_16h' with confidence 1.00.
> 2020-09-02 19:34:06 DEBUG rasa.core.actions.action - Calling action endpoint to run action 'action_set_reminder_16h'.
> 2020-09-02 19:34:06 DEBUG rasa.core.processor - Action 'action_set_reminder_16h' ended with events '[<rasa.core.events.ReminderScheduled object at 0x7ff7cd342f10>]'.
> 
> ```

And here at the time the reminder should have been triggered:

> ```
> 2020-09-02 19:56:40 DEBUG rasa.core.processor - Predicted next action 'action_listen' with confidence 0.99.
> 2020-09-02 19:56:40 DEBUG rasa.core.processor - Action 'action_listen' ended with events '[]'.
> 2020-09-02 19:56:40 DEBUG rasa.core.lock_store - Deleted lock for conversation '415604082'.
> 2020-09-02 23:34:06 DEBUG rasa.core.tracker_store - Recreating tracker for id '415604082'
> 2020-09-02 23:34:06 DEBUG rasa.core.processor - The latest session for conversation ID '415604082' has expired.
> 2020-09-02 23:34:06 DEBUG rasa.core.processor - Starting a new session for conversation ID '415604082'.
> 2020-09-02 23:34:06 DEBUG rasa.core.processor - Action 'action_session_start' ended with events '[<rasa.core.events.SessionStarted object at 0x7ff7cd0a30d0>, <rasa.core.events.SlotSet object at 0x7ff7cd0a37d0>, <rasa.core.events.SlotSet object at 0x7ff7cd0a3750>, <rasa.core.events.SlotSet object at 0x7ff7cd0a3810>, <rasa.core.events.SlotSet object at 0x7ff7cd442950>, <rasa.core.events.SlotSet object at 0x7ff7cd0b22d0>, <rasa.core.events.SlotSet object at 0x7ff7cd0b2390>, <rasa.core.events.SlotSet object at 0x7ff7cd0b2250>, <rasa.core.events.SlotSet object at 0x7ff7cd0b2290>, <rasa.core.events.SlotSet object at 0x7ff7cd0b2190>, <rasa.core.events.SlotSet object at 0x7ff7cd0b2310>, <rasa.core.events.SlotSet object at 0x7ff7cd0b2fd0>, <rasa.core.events.SlotSet object at 0x7ff7cd0b2890>, <rasa.core.events.SlotSet object at 0x7ff7cd0b2610>, <rasa.core.events.SlotSet object at 0x7ff7cd0b2d50>, <rasa.core.events.SlotSet object at 0x7ff7cd0b21d0>, <rasa.core.events.SlotSet object at 0x7ff7cd0b2e90>, <rasa.core.events.SlotSet object at 0x7ff7cd0b2590>, <rasa.core.events.SlotSet object at 0x7ff7cd0b24d0>, <rasa.core.events.SlotSet object at 0x7ff7cd0b2f10>, <rasa.core.events.SlotSet object at 0x7ff7cd0b2090>, <rasa.core.events.SlotSet object at 0x7ff7cd0b2850>, <rasa.core.events.SlotSet object at 0x7ff7d5d65150>, <rasa.core.events.SlotSet object at 0x7ff7d5d65390>, <rasa.core.events.SlotSet object at 0x7ff7d5d65dd0>, <rasa.core.events.SlotSet object at 0x7ff7d5d65350>, <rasa.core.events.SlotSet object at 0x7ff7d5d65d10>, <rasa.core.events.ActionExecuted object at 0x7ff7cd0a3650>]'.
> 2020-09-02 23:34:06 DEBUG rasa.core.processor - Current slot values: 
> hours_fasted: 0 Stunden
> is_fasting: 1
> mins_fasted: 22 Minuten
> start_fast: 2020-09-02 19:34:06
> **2020-09-02 23:34:06 DEBUG rasa.core.processor - Canceled reminder because it is outdated (ReminderScheduled(intent: 16h_fast_reminder, trigger_date: 2020-09-02 23:34:06.471587, entities: [], name: 16h_fast_reminder)).**
> 
> ```

In the last line it says “Canceled reminder because it is outdated” exactly at the time when it should have triggered.

Any reasons why?

I wondered whether it was due to the session\_expiration\_time and changed it to 2 mins and tested with messages after 5 mins. That still worked, so it doesn’t seem to be due to an expired session…

Thanks, Alex.

---

<div class="post-metadata">

**Author:** ![GeovanaRamos](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/geovanaramos/32/9116_2.png) [@GeovanaRamos](https://forum.rasa.com/u/GeovanaRamos)\
**Post date:** [September 4, 2020, 11:28am UTC](https://forum.rasa.com/t/instead-of-triggering-a-reminder-this-canceled-reminder-because-it-is-outdated/33359/2 "2020-09-04T11:28:58Z")

</div>

Hi! Did you add `kill_on_user_message=False` in your `ReminderScheduled`?

---

<div class="post-metadata">

**Author:** ![s0288](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/s0288/32/10837_2.png) [@s0288](https://forum.rasa.com/u/s0288)\
**Post date:** [September 5, 2020, 12:33pm UTC](https://forum.rasa.com/t/instead-of-triggering-a-reminder-this-canceled-reminder-because-it-is-outdated/33359/3 "2020-09-05T12:33:40Z")

</div>

Hi Geovana! Thx and yes I set it to False.

This is my Reminder action:

> class SetReminder16h(Action): “”" Creates a reminder to tell the user he fasted 16 hours already “”"
> 
> ```
> def name(self) -> Text:
> return "action_set_reminder_16h"
> 
> async def run(
> self,
> dispatcher: CollectingDispatcher,
> tracker: Tracker,
> domain: Dict[Text, Any],
> ) -> List[Dict[Text, Any]]:
> 
> date = datetime.datetime.now() + datetime.timedelta(minutes=960) # 16 hours
> entities = tracker.latest_message.get("entities")
> 
> reminder = ReminderScheduled(
> "16h_fast_reminder",
> trigger_date_time=date,
> entities=entities,
> name="16h_fast_reminder",
> kill_on_user_message=False,
> )
> 
> print("setting reminder")
> 
> return [reminder]            
> 
> ```

And this is my session\_config in my domain.yml:

> session\_config: carry\_over\_slots\_to\_new\_session: true session\_expiration\_time: 60

Do you see a possible cause for the issue?

---

<div class="post-metadata">

**Author:** ![Takdir](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Takdir](https://forum.rasa.com/u/Takdir)\
**Post date:** [March 15, 2023, 4:38pm UTC](https://forum.rasa.com/t/instead-of-triggering-a-reminder-this-canceled-reminder-because-it-is-outdated/33359/4 "2023-03-15T16:38:17Z")

</div>

Hi Alex, I’m facing the same issue. Were you able to fix it? I’m using the rasa shell as frontend.

Regards, Takdir
