Scheduling reference

From Crapule421/tiger-team · View interactive version

Scheduling reference is an AI agent skill from the GitHub repository Crapule421/tiger-team. Batch scheduling knowledge base - robust chain principles, review checklist, restart method; references for VTOM, Dollar Universe and Control-M (Automation API) with a cross-tool mapping.

How to use this skill

Skill file

Scheduling reference - robust batch chains

Product-neutral principles first; product specifics are in references/. Scheduler features, field names and CLI options differ between major versions: anything flagged "verify against your version" must be checked in the vendor documentation of the installed release before it goes into a deliverable. Never invent commands, flags, JSON keys or object attributes.

1. Reference files

2. Neutral vocabulary (use it in cross-tool documents)

| Term | Meaning |

|---|---|

| Chain | Set of jobs with dependencies delivering one business outcome (e.g. accounting close, payment file generation). |

| Job | Smallest schedulable unit; runs one script/program on one host under one account. |

| Processing date | Business date the run is about (VTOM exploitation date, $U processing date, Control-M ODATE). Never the system clock. |

| Window | Time interval during which a chain may run (start not before / must end before = cut-off). |

| Dependency | Precedence rule between jobs (on success, on failure, on any end, on time, on file, on external event). |

| Resource | Shared asset protected by the scheduler: exclusive lock, quota/semaphore, file presence. |

| Restart point | Where a failed chain may resume without corrupting data. |

| Critical path | Longest duration path through the dependency graph to the cut-off; zero slack. |

| Run book | Operator documentation: purpose, inputs/outputs, restart procedure, escalation. |

3. Core principles of a robust batch chain

3.1 Idempotence (a rerun gives the same result)

3.2 Restartability and checkpoints

3.3 Parameters and processing date

3.4 Windows, cut-offs and critical path

3.5 Dependencies

3.6 Resources and concurrency

3.7 Files and transfers

3.8 Exit-code contract and logs

3.9 Monitoring and alerting

3.10 Security and compliance

3.11 Environments and change management

3.12 Calendars (France/EU)

3.13 Run book - minimum content per job

Purpose; owner; host/account; inputs (files, tables) and outputs; dependencies up/down; expected duration (P50/P90) and latest end; restart procedure (rerun as-is / cleanup + rerun / do not rerun + compensation); what "force OK" implies downstream; escalation contacts and hours; criticality; known errors and fixes.

4. Review checklist (use for any chain)

| # | Axis | Check |

|---|---|---|

| 1 | Inventory | All jobs, hosts, run-as accounts, scripts, resources, calendars listed; no orphan objects; naming convention respected. |

| 2 | Dependencies | DAG without cycles; every job reachable; no implicit ordering by time; condition type and date scope explicit; cross-chain dependencies documented both sides. |

| 3 | Scheduling | Calendars correct for the business (national vs T2 vs close calendar); shift rules; month-end/year-end; DST handled; time zone of server vs agents. |

| 4 | Windows | Earliest start, cut-off, external prerequisites documented; critical path within window with margin. |

| 5 | Restartability | Each job: idempotent or checkpointed; cleanup step; restart procedure documented; non-rerunnable jobs flagged. |

| 6 | Error handling | Exit-code contract; warning vs error mapping; on-failure branch defined (stop chain, alert, compensating job); retries only for transient errors with delay and bound. |

| 7 | Resources | Shared targets protected (exclusive/quota); quotas sized; release on kill verified. |

| 8 | Files | Completeness checks, atomic rename, encoding, archive/purge, MFT acknowledgments. |

| 9 | Monitoring | Fail, late start, long run, cut-off at risk, agent down; alert routing; run book links. |

| 10 | Security | Least-privilege run-as; no secrets in definitions/scripts/args; operator actions audited. |

| 11 | Operability | Run book complete; logs with counts; job output retention; holiday/peak behaviour known. |

| 12 | Change | Definitions versioned; environment variables separated; forecast compared after change. |

5. Incident and restart method

  1. Detect and qualify: which job, which processing date, exit code, first error in log, since when; is the chain on the critical path; time left before cut-off.
  2. Contain: hold downstream jobs that are not yet started if the failed output may be consumed partially; stop cyclic triggers if they will multiply the failure; do not delete anything.
  3. Diagnose: classify the cause -
  1. Assess side effects: what did the failed run already write/send? Partial DB commits, files transferred, messages published, mails sent. Decide cleanup or compensation before any rerun.
  2. Decide (decision table):

| Situation | Action |

|---|---|

| Job atomic or idempotent, cause removed | Rerun the job. |

| Job checkpointed | Restart from checkpoint/step; verify the restart table. |

| Partial output, not idempotent | Cleanup (documented procedure) then rerun; or restore point then rerun. |

| Output not needed today / business accepts | Force OK (set to OK/finished) with written approval; record downstream impact. |

| Job must not run twice (sent payment file) | Never rerun blindly: verify partner receipt, then force OK or targeted resend. |

| Cut-off cannot be met | Escalate early (business + management), apply degraded mode from run book. |

  1. Execute and verify: restart, watch the next jobs, verify counts/totals against expected, confirm downstream consumers.
  2. Record: incident ticket with timeline, operator actions (who forced what), root cause, permanent fix; feed the run book; for DORA-regulated entities assess classification as major ICT incident.

6. Critical path - quick method

  1. Build the DAG (jobs = nodes, dependencies = edges); add virtual nodes for external waits (file arrival times, upstream chains, time gates).
  2. Duration per job = P90 over the last 30-60 comparable runs (separate month-end runs).
  3. Forward pass: earliest start/finish; backward pass from the cut-off: latest start/finish; slack = latest - earliest.
  4. Critical path = zero/minimal slack; margin = cut-off - projected end. Report the top 5 jobs by contribution and the "rerun cost" of each.
  5. Levers: parallelize independent branches, split long jobs with checkpoints, move non-critical jobs off the path, start earlier on partial prerequisites, tune resources/quotas, DB indexing (hand off to dba-expert).

7. Anti-patterns (flag them)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.