4 ms·
Since we are here does anyone have idea about how to schedule 1000 calls per day? Background task: I am building a service to send twitter messages daily. The
by rajasimon 4y ago
Since we are here does anyone have idea about how to schedule 1000 calls per day?
Background task:
I am building a service to send twitter messages daily. The limit of Twitter API is I can't send more than 1000 messages so I have to limit the call in the backend.
The closet solution I found that is I schedule a celery beat background task exactly 3 minutes and I call the Twitter API 2 times per task so daily it can send upto 960 messages in 24-hour window.
So I am still finding the solution to make this happen. Suggestion welcome.
- pottertheotter 4y agoWhy not just schedule the task for every 86 seconds and count how many times you've done it so you stop at 1,000?