instedd / surveda

InSTEDD Surveda
https://instedd.org/technologies/surveda-mobile-surveys/
GNU General Public License v3.0
17 stars 6 forks source link

Log batch limit when activating respondents #2317

Closed matiasgarciaisaia closed 5 months ago

matiasgarciaisaia commented 6 months ago

If the SurveyBroker wants to activate more respodents than allowed by the batch limit per minute, log the fact that it was capped.

Before this commit, the limit was applied without logging it, making it harder to understand what was going on.

matiasgarciaisaia commented 5 months ago

I've now tested it and the logs end up like this:

2024-04-17T19:55:39.331Z [info] Polling survey 2 (active=2, pending=2, completed=0, batch_size=100)
2024-04-17T19:55:39.331Z [info] Survey 2. Starting up to 2 respondents (wanted to start 98, batch limit at 2).