Skip to content

Duplicate timer delivery is noop

← All scenarios

The same timer delivered twice produces one follow-up SMS; the copy is dropped.

Client A dry van IdempotentDo nothingTimers eval passes
Load 481207: Riverbend Foods, 2 stops, 3 contacts

Stops

  1. Riverbend plant (pickup)
    Oct 13, 6:00 AM PDT to Oct 13, 2:00 PM PDT
  2. Valley DC (delivery)
    Oct 14, 9:30 AM PDT

Contacts

  • driver drv_20931 sms
  • dispatcher dsp_4410 email
  • broker brk_0087 email, slack
  1. 7:01 AM Step 1 of 3

    Delay risk high: SMS the driver for the ETA

    matches the eval

    In

    Location ping: delay risk high for stop 1

    Decide

    SOP client_a/delay_risk_high@v1

    followed client_a/delay_risk_high@v1

    No model call 2 delivery outcomes recorded

    Out

    SMS to driver
    Load 481207: what is your ETA to Riverbend plant? Please reply with the time.
    step 1 of ask:eta_request:ping_0700481207/ask:eta_request:ping_0700/1/send_sms
    Timer set for 7:31 AM PDT481207/ask:eta_request:ping_0700/1/set_timer
    Asks after this step 1 open
    • ETA requestOpen
      Target
      driver
      Stop
      Riverbend plant
      Attempts
      1 of 2
      Next timer
      7:31 AM
      SOP
      client_a/delay_risk_high@v1
      ask:eta_request:ping_0700
  2. 7:31 AM Step 2 of 3

    The pump delivers the timer: second SMS

    matches the eval

    In

    Timer fired: ask:eta_request:ping_0700 attempt 1

    Decide

    SOP client_a/delay_risk_high@v1

    ask:eta_request:ping_0700 unanswered at step 1, continued client_a/delay_risk_high@v1

    No model call 2 delivery outcomes recorded

    Out

    SMS to driver
    Load 481207: what is your ETA to Riverbend plant? Please reply with the time.
    step 2 of ask:eta_request:ping_0700481207/ask:eta_request:ping_0700/2/send_sms
    Timer set for 8:01 AM PDT481207/ask:eta_request:ping_0700/2/set_timer
    Asks after this step 1 open
    • ETA requestOpen, last attempt sent
      Target
      driver
      Stop
      Riverbend plant
      Attempts
      2 of 2
      Next timer
      8:01 AM
      SOP
      client_a/delay_risk_high@v1
      ask:eta_request:ping_0700
  3. 7:31 AM Step 3 of 3

    The same timer is delivered again: dropped as a duplicate

    matches the eval

    In

    Timer fired: ask:eta_request:ping_0700 attempt 1

    Decide

    Filtered

    event evt:tmr:481207:ask:eta_request:ping_0700:1 was already processed

    No model call

    Out

    Agent did nothing (correct) No message, no task, no timer.
    Asks after this step 1 open
    • ETA requestOpen, last attempt sent
      Target
      driver
      Stop
      Riverbend plant
      Attempts
      2 of 2
      Next timer
      8:01 AM
      SOP
      client_a/delay_risk_high@v1
      ask:eta_request:ping_0700
Prepared for Freight Hero by Marcus Caum Source on GitHub