Browse Source

update batch frequency

Clovis JAQUIN 2 years ago
parent
commit
42a77f00fa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/create_sms_batch.py

+ 2 - 2
app/create_sms_batch.py

@@ -9,7 +9,7 @@ from app.core.session import session
 from app.models import User, Sms, Project
 
 TEST_SMS_PROJECT_NAME = "test_project pour sms"
-NUMBER_OF_SMS = 100
+NUMBER_OF_SMS = 80
 
 
 def main() -> None:
@@ -27,7 +27,7 @@ def main() -> None:
         now = datetime.now()
 
         for t in range(NUMBER_OF_SMS):
-            sending_time = now + timedelta(minutes=t * 5)
+            sending_time = now + timedelta(minutes=t * 45)
             sms = Sms(
                 project_id=project.id,
                 content=sending_time.strftime("%m/%d/%Y, %H:%M:%S"),