MetPX / sarracenia

https://MetPX.github.io/sarracenia
GNU General Public License v2.0
44 stars 22 forks source link

Batch is overridden by messageCountMax #975

Open mshak2 opened 6 months ago

mshak2 commented 6 months ago

If we set batch to 1 and messageCountMax to 5, we get 5 messages in one call to getNewMessages.

mshak2 commented 3 months ago

Tried to reproduce the issue, but seems to work as expected:

2024-06-28 20:01:36,296 [INFO] 2495239 sarracenia.flowcb.log after_accept accepted: (lag: 4.18 ) https://hpfx.collab.science.gc.ca /20240628/WXO-DD/citypage_weather/xml/BC/s0000175_f.xml
2024-06-28 20:01:36,365 [INFO] 2495239 sarracenia.flowcb.log after_work downloaded ok: /tmp/hpfx_citypage/20240628/WXO-DD/citypage_weather/xml/BC/s0000175_f.xml 
2024-06-28 20:01:36,367 [INFO] 2495239 sarracenia.flowcb.log after_accept accepted: (lag: 4.25 ) https://hpfx.collab.science.gc.ca /20240628/WXO-DD/citypage_weather/xml/NL/s0000221_e.xml
2024-06-28 20:01:36,379 [INFO] 2495239 sarracenia.flowcb.log after_work downloaded ok: /tmp/hpfx_citypage/20240628/WXO-DD/citypage_weather/xml/NL/s0000221_e.xml 
2024-06-28 20:01:36,466 [INFO] 2495239 sarracenia.flowcb.log after_accept accepted: (lag: 4.30 ) https://hpfx.collab.science.gc.ca /20240628/WXO-DD/citypage_weather/xml/NT/s0000818_e.xml
2024-06-28 20:01:36,476 [INFO] 2495239 sarracenia.flowcb.log after_work downloaded ok: /tmp/hpfx_citypage/20240628/WXO-DD/citypage_weather/xml/NT/s0000818_e.xml 
2024-06-28 20:01:36,480 [INFO] 2495239 sarracenia.flowcb.log after_accept accepted: (lag: 4.31 ) https://hpfx.collab.science.gc.ca /20240628/WXO-DD/citypage_weather/xml/NS/s0000405_f.xml
2024-06-28 20:01:36,489 [INFO] 2495239 sarracenia.flowcb.log after_work downloaded ok: /tmp/hpfx_citypage/20240628/WXO-DD/citypage_weather/xml/NS/s0000405_f.xml 
2024-06-28 20:01:36,690 [INFO] 2495239 sarracenia.flowcb.log after_accept accepted: (lag: 4.57 ) https://hpfx.collab.science.gc.ca /20240628/WXO-DD/citypage_weather/xml/NL/s0000220_e.xml