zappa scheduling with Python

后端 未结 2 1837
轻奢々
轻奢々 2021-01-22 00:09

I am running this code to send a sms message with Twilio...

client.messages.create(
        to=form.phone.data, 
        from_=\"+1xxxxxxxxxx\",
        body=\"T         


        
2条回答
  •  萌比男神i
    2021-01-22 00:56

    I made a db driven task queue for zappa. https://github.com/andytwoods/zappa-call-later . Early days, but we are using it in production.

    Every X minutes, (as suggested in @Oluwafemi Sule's answer) a Zappa event pings a function that checks for tasks. Tasks can be delayed Y minutes, repeated Z times etc.

    My solution is crude in that it has low time resolution, and is quite low level currently.

提交回复
热议问题