Skip to content

Schedule messages to be delivered at a future date #40

Open
@marcus-sa

Description

Functionality to schedule messages to be delivered at a future date

Activity

changed the title Schedule messages to be sent at a future date Schedule messages to be delivered at a future date on Aug 1, 2023
chronark

chronark commented on Aug 1, 2023

@chronark
Contributor

Hey, you can set a delay in seconds when publishing a message, does that not work for you?

Or absolute timestamp:
https://github.com/upstash/sdk-qstash-ts/blob/359a55ee6d87d1d8af94abbcddc7b76d3d97d145/pkg/client/client.ts#L88

kristianeboe

kristianeboe commented on Sep 12, 2023

@kristianeboe

Maybe he ran into the same issue as me, trying to pass in notBefore and delay timestamps in milliseconds instead of seconds.

It would be pretty sweet if the api client could support milliseconds as that is the standard in js.
Here is what I do now
notBefore: Math.floor(nextInviteDate?.getTime() / 1000),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Schedule messages to be delivered at a future date · Issue #40 · upstash/qstash-js