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

延时执行希望可以自己传时间戳! #12

Open
codedart2018 opened this issue Nov 15, 2021 · 0 comments
Open

延时执行希望可以自己传时间戳! #12

codedart2018 opened this issue Nov 15, 2021 · 0 comments

Comments

@codedart2018
Copy link

目前系统是自己time + delayTime.
现在有这么一个场景,我自定义2021-11-16日上架商品,我当前定义的time()是a 上架日期是b. b-a后一个差值是c.我把c丢给delayTime去。在delayTime 又是当前的time().这个time不是我前面拿到的那个time可能会造成有一至两秒或更多的差。
然后我又更改了商品上架日期为2021-11-17日。但是2021-11-16的那个时间戳如果和队列里的score无法匹配,我没办法在队列里找到删除它。导致它成为了一个死的。到了时间就可能触发上架了。

期望:希望自己能完整定义一个倒时时间戳。

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

1 participant