Skip to content

Fix: Add timeout to discover_ad_units to prevent stuck syncs#624

Merged
EmmaLouise2018 merged 1 commit intomainfrom
sync_fixes
Oct 25, 2025
Merged

Fix: Add timeout to discover_ad_units to prevent stuck syncs#624
EmmaLouise2018 merged 1 commit intomainfrom
sync_fixes

Conversation

@EmmaLouise2018
Copy link
Contributor

The discover_ad_units() method was missing a @timeout decorator, causing inventory syncs to hang indefinitely at 'Discovering Ad Units (1/6)' if the GAM API became unresponsive.

All other discovery methods (placements, labels, custom_targeting) already had 600-second timeouts. This adds the same 600-second timeout to ad units discovery for consistency.

This fixes the issue where users see 'Sync in progress...' stuck at phase 1 and need to click 'Reset Stuck Sync' to recover.

The discover_ad_units() method was missing a @timeout decorator, causing
inventory syncs to hang indefinitely at 'Discovering Ad Units (1/6)' if
the GAM API became unresponsive.

All other discovery methods (placements, labels, custom_targeting) already
had 600-second timeouts. This adds the same 600-second timeout to ad units
discovery for consistency.

This fixes the issue where users see 'Sync in progress...' stuck at phase 1
and need to click 'Reset Stuck Sync' to recover.
@EmmaLouise2018 EmmaLouise2018 merged commit 75c8e49 into main Oct 25, 2025
9 checks passed
danf-newton pushed a commit to Newton-Research-Inc/salesagent that referenced this pull request Nov 24, 2025
Fix: Add timeout to discover_ad_units to prevent stuck syncs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant