Stuck on Data Action Timeout pulling WFM Schedule Data for Real-Time Adherence

Stuck on a persistent timeout issue when trying to pull live schedule data from the WFM module via a custom Data Action in Architect. The goal is to display real-time adherence scores directly on the agent desktop widget.

The Data Action calls the /api/v2/wfm/schedules/adherence endpoint. It works flawlessly in our staging environment with a small team of 20 agents. However, in production, which houses over 500 agents across the Chicago timezone shifts, the request consistently times out after 30 seconds. The Architect flow logs show a generic 504 Gateway Timeout rather than a specific WFM error code.

We are using the standard Genesys Cloud SDK for Node.js v4.2.1. The payload includes filters for the current date range and specific skill groups. I have tried increasing the timeout threshold in the Architect flow settings to 60 seconds, but the issue persists. Interestingly, pulling historical schedule data via the same endpoint works fine, suggesting the issue is related to the volume of real-time calculations rather than authentication or endpoint availability.

Has anyone else hit this wall with large-scale WFM integrations? Are there specific pagination strategies or alternative endpoints recommended for real-time adherence data in high-volume environments?