Just noticed that our custom Python script for updating agent skills is failing specifically when triggered by our weekly WFM schedule publish at 10:00 AM CST. The script uses the Genesys Cloud SDK v2.45 to batch update user profiles based on the new shift assignments.
Here is the sequence of events:
- WFM schedule publishes at 10:00 AM CST.
- Our webhook triggers the agent scripting job.
- The script attempts to PATCH /api/v2/users/{userId} to assign new skills.
- We receive a 409 Conflict error with message: ‘User profile is currently being updated by another process.’
This only happens during the publish window. If we run the same script manually at 11:00 AM CST, it succeeds without errors. The latency between the WFM publish and the script execution is under 30 seconds. Are we hitting a lock on the user object during the schedule propagation? Or is there a recommended retry strategy for this specific conflict during WFM operations? We need to ensure skills are aligned before agents log in for their shifts.