shaoht
V2EX  ›  问与答

求问各位大佬: Django 项目,根据用户第一次发邮件的时间,按固定间隔(24h/36h/48h)再次发送邮件

  •  
  •   shaoht · Oct 29, 2019 · 1569 views
    This topic created in 2454 days ago, the information mentioned may be changed or developed.

    每一个用户第一次发邮件的时间会存入数据库,如何根据用户第一次发邮件的时间 + 固定间隔时间,再次给他发送邮件。

    4 replies    2019-10-29 13:39:12 +08:00
    SD10
        1
    SD10  
       Oct 29, 2019 via Android
    搜索 celery 任务队列
    jenlors
        2
    jenlors  
       Oct 29, 2019
    如果时间要求不那么精确,记录下次发邮件的时间,定时查询数据库满足条件的用户,然后依次发邮件。
    ArtIsPatrick
        3
    ArtIsPatrick  
       Oct 29, 2019
    小项目 apscheduler,大项目 celery
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2814 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 13:18 · PVG 21:18 · LAX 06:18 · JFK 09:18
    ♥ Do have faith in what you're doing.