Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schedule messages to be delivered at a future date #40

Open
marcus-sa opened this issue Aug 1, 2023 · 2 comments
Open

Schedule messages to be delivered at a future date #40

marcus-sa opened this issue Aug 1, 2023 · 2 comments

Comments

@marcus-sa
Copy link

marcus-sa commented Aug 1, 2023

Functionality to schedule messages to be delivered at a future date

@marcus-sa marcus-sa changed the title Schedule messages to be sent at a future date Schedule messages to be delivered at a future date Aug 1, 2023
@chronark
Copy link
Contributor

chronark commented Aug 1, 2023

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
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants