qstash-js icon indicating copy to clipboard operation
qstash-js copied to clipboard

Schedule messages to be delivered at a future date

Open marcus-sa opened this issue 2 years ago • 2 comments

Functionality to schedule messages to be delivered at a future date

marcus-sa avatar Aug 01 '23 12:08 marcus-sa

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

chronark avatar Aug 01 '23 12:08 chronark

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),

kristianeboe avatar Sep 12 '23 15:09 kristianeboe