adobe-apiplatform / user-sync.py

Application for synchronizing Adobe customer directories via the User Management API
https://adobe-apiplatform.github.io/user-sync.py/en/user-manual/
MIT License
87 stars 67 forks source link

Pragma header not sent when using additional_groups with auto_create: True #813

Closed Luci2015 closed 1 month ago

Luci2015 commented 1 year ago

Description Possibility to get throttled when using additional_groups if first call is missed for different reasons

Expected behavior not get throttled

Screenshots

023-03-13 04:00:09 94799 INFO processor - ---------- Start Sync with UMAPI -------------------------------------
2023-03-13 04:01:38 94799 WARNING umapi - UMAPI request limit reached (code 504 on try 1)
2023-03-13 04:01:38 94799 WARNING umapi - waiting 16 seconds to continue...
2023-03-13 04:01:54 94799 WARNING umapi - UMAPI request limit reached (code 429 on try 2)
2023-03-13 04:01:54 94799 WARNING umapi - waiting 1938 seconds to continue...
2023-03-13 04:39:38 94799 INFO umapi - Sending start_sync signal
2023-03-13 04:39:52 94799 INFO umapi - 1999/5785 (34.6%) 

The call to get all groups gets 504, retry kicks-in and second call to get groups gets throttled. GET users page 0 starts and Pragma header is sent along, then sync continues as usual.

Environment