trigger.dev icon indicating copy to clipboard operation
trigger.dev copied to clipboard

[TRI-1879] From an event page, if it's scheduled but not delivered you should be able to cancel it.

Open matt-aitken opened this issue 2 years ago • 1 comments

Events can be scheduled for the future using deliverAt or deliverAfter (see options in the docs: https://trigger.dev/docs/sdk/io/sendevent).

You can programatically cancel these using cancelEvent(): https://trigger.dev/docs/sdk/triggerclient/instancemethods/cancel-event

We should add a Cancel button to the top-right of an Event page, if that event has not been delivered yet.

This event hasn't been delivered yet.

CleanShot 2024-01-17 at 10 35 44@2x

Position of cancel button

CleanShot 2024-01-17 at 10 35 52@2x

From SyncLinear.com | TRI-1879

matt-aitken avatar Jan 17 '24 10:01 matt-aitken

This is in a branch fix-event-delivered-at because it highlighted a problem where the deliveredAt wasn't being set for tests, re-runs and HTTP endpoint events.

matt-aitken avatar Jan 29 '24 12:01 matt-aitken