DMFR Task Runner ensures that your automated tasks NEVER fail due to Rate Limits or Quota Exhaustion. It implements a resilient execution strategy:
- Start with a high-performance model (e.g., Gemini 3.0 Flash).
- Monitor for failure (Rate Limit/429/Quota).
- Automatically switch to a backup model (e.g., Gemini 2.0 Flash) and retry.
- Preserve context and inject it into the fallback run.
Customize your model chain and timeouts.
# Set default chain (Example)
node skills/dmfr-task-runner/index.js configure --chain "google/gemini-3-flash-preview,google/gemini-2.0-flash-001,gpt-4o-mini"Run any task description. The runner will handle model selection and fallbacks internally.
# Execute resilient task
node skills/dmfr-task-runner/index.js run --task "Write a poem about resilience"- Orchestrator: Receives the task.
- Worker (Attempt 1): Generates a script targeting Model A. Executes via
local-task-runner. - Failure Detection: Monitors stderr for "429", "Quota", "Rate Limit".
- Fallback (Attempt 2): Automatically regenerates the script targeting Model B. Injects context. Re-runs.
- Success: Returns the result.
This skill relies on local-task-runner for actual execution. Ensure it is installed.