adobe-apiplatform/user-sync.py

Pragma header not sent when using additional_groups with auto_create: True

Luci2015 opened this issue · 0 comments

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

  • Relevant config options
    additional_groups enabled
    groups are set for:
    auto_create: True

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

  • UST version: all
  • OS type and version: all
  • Any other relevant info: n/a