Skip to content
Prompt

A1Betting7-13.2 — Copilot Instructions

by itzcole03

AI Summary

Heuristic scoring (no AI key configured).

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "A1Betting7-13.2 — Copilot Instructions" prompt rules to my project.
Repository: https://github.com/itzcole03/A1Betting7-13.2

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Copilot Instructions for A1Betting7-13.2

God Prompt: /dataingest

Context: • Goal: Optimize real-time data ingestion from TheOdds API for improved efficiency and reliability. • Location: backend/app/services/data_ingestion.py (or suggest a new module if more appropriate for a large pipeline). • Current Issue: Occasional hanging during API calls to TheOdds API, leading to data staleness and potential resource exhaustion. • Requirements: • Implement aggressive timeouts (e.g., 30 seconds) for all external API requests to prevent indefinite hanging. • Apply a robust circuit breaker pattern (e.g., using tenacity library or a custom implementation) for retries with exponential backoff on transient errors, and a fallback mechanism. • Add comprehensive logging for successful data fetches, failures, retries, and circuit breaker state changes. • Consider graceful degradation strategies (e.g., serving slightly stale cached data if the API is unresponsive for an extended period). • Ensure proper process monitoring for background data ingestion tasks, including health checks and alerts for prolonged failures. • Optimize data parsing and storage to handle large volumes efficiently, considering the 3000+ file context and overall system load. Task: Refactor the fetch_odds_data function (or create a new data ingestion pipeline) to include robust timeout mechanisms, a circuit breaker pattern, and comprehensive logging. Provide example usage and considerations for deployment in a large-scale, real-time environment.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 5mo ago
Stale
AdoptionUnder 100 stars
0 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Forks1
Issues2
Updated5mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more