Skip to content

Cancel scheduled events #230

@marcus-sa

Description

@marcus-sa

Currently, events can be scheduled like so:

await client.sendEvent({
  name: "user.created",
  payload: { name: "John Doe", email: "john@doe.com", paidPlan: true },
  deliverAt: new Date('2024'),
});

I want the ability to cancel them.

Either an identifier should be provided as an argument to the function or returned by it so that it can later be referenced when the scheduled event should be canceled.

Alternatively, there should be a completely separate API for scheduling events.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions