Production AI workflows

बिना environment साझा किए AI workflows को development से production तक ले जाएँ।

Development, staging और production को अलग Dagu instances में चलाएँ। Git के जरिए केवल reviewed workflow definitions promote करें, जबकि credentials, workers, history, access policy और incident routes हर instance में अलग रहें।

agent-workflow.yaml
name: release-review

steps:
  - id: collect_context
    run: ./scripts/collect-context.sh
    output: CONTEXT

  - id: draft
    action: harness.run
    with:
      provider: codex
      prompt: |
        Review this release:
        ${steps.collect_context.outputs.CONTEXT}
    retry_policy:
      limit: 2
    approval:
      prompt: Review the agent output before release
      rewind_to: collect_context
    depends: [collect_context]

  - id: publish
    run: ./scripts/publish.sh
    depends: [draft]

हर environment के लिए अलग Dagu instance

Git review के बाद workflow promotion

Approvals, retries, logs, metrics और traces

Slack, PagerDuty और authenticated MCP recovery

Environment architecture

Git definitions को promote करता है। अलग instances isolation देते हैं।

एक shared server के भीतर development workspace production boundary नहीं है। हर environment को अपना Dagu server, storage, credentials, workers और network access दें। हर instance के Git Sync को उस environment के approved branch से जोड़ें।

01

Development

development branch

Development services और credentials के साथ workflow changes बनाएँ, चलाएँ, debug करें और publish करें।

Publish enabled

Pull request से promote करें
02

Staging

staging branch

Reviewed definitions को isolated instance में pull करें और staging dependencies के साथ validate करें।

Read-only Git Sync

Pull request से promote करें
03

Production

protected main branch

केवल promoted revisions को production-only credentials, policies, telemetry और incident routing के साथ चलाएँ।

Read-only Git Sync

Production controls

Non-deterministic काम के चारों ओर deterministic controls रखें।

Model या agent runtime बदल सकता है, पर operational contract वही रह सकता है। Dagu execution path को explicit, reviewable और recoverable रखता है।

Workflow को version करें

DAG definitions और workflow-authoring skills को Git में रखें, diffs review करें और environments के बीच ज्ञात revision promote करें।

Side effects को gate करें

Agent output के बाद pause करें, reviewer input लें और production action से पहले approve, reject या workflow को वापस भेजें।

Failure को सीमित करें

बिना सीमा वाली prompt glue के बजाय dependencies, timeouts, capped retries, queues और concurrency controls इस्तेमाल करें।

Output validate करें

Approval या publishing से पहले deterministic tests, policy checks या external evaluation commands को सामान्य workflow steps की तरह चलाएँ।

Execution observe करें

Run history, logs और artifacts देखें; Prometheus में metrics और OpenTelemetry से DAG/step traces export करें।

Recovery नियंत्रित करें

Operators को notify करें, retries खत्म होने पर incidents खोलें और authorized MCP clients को runs inspect तथा recover करने दें।

Git-based promotion

Production में local edits नहीं, Git से definitions लें।

Development changes publish कर सकता है। Staging और production में सामान्यतः `push_enabled: false` रखें, protected branches follow करें और केवल reviewed definitions pull करें। Staging में automatic pull उपयोगी है; production protected branch को auto-pull कर सकता है या deployment approval के बाद controlled pull कर सकता है।

Git Sync DAG files और workflow-authoring skills track करता है। Secrets, server configuration, storage, run history, workers और network access हर Dagu instance में local रहते हैं।

production config.yaml
git_sync:
  enabled: true
  repository: github.com/acme/ai-workflows
  branch: main
  push_enabled: false

  auth:
    type: token
    token: ${GITHUB_TOKEN}

  auto_sync:
    enabled: true
    on_startup: true
    interval: 300

Failure और recovery

Agent failure को operational process में बदलें।

Dagu सामान्य notifications को incident lifecycle management से अलग रखता है और MCP clients को authenticated workflow operations देता है।

  1. 01

    Workflow या agent step fail होता है और configured retries चलते हैं।

  2. 02

    Retry budget खत्म होने पर Dagu final failure को configured Slack routes पर भेजता है।

  3. 03

    PagerDuty routing failing workflow के लिए एक deduplicated incident खोल या update कर सकती है।

  4. 04

    Authorized MCP client run और logs पढ़ता है, DAG change preview करता है और Dagu tools से run retry या stop करता है।

  5. 05

    बाद का सफल run provider route की पहचान बने रहने पर खुले incident को resolve करता है।

सटीक सीमाएँ

Dagu क्या देता है—और क्या दूसरी layer की जिम्मेदारी है।

Dagu AI system के चारों ओर workflow control layer है। स्पष्ट सीमाएँ architecture को सुरक्षित और production claim को उपयोगी बनाती हैं।

Dagu देता हैसीमा
Environment separationअलग servers, storage, credentials, workers, access policy और incident configuration, definitions के लिए Git Sync सहित।एक instance के भीतर workspaces और runtime profiles hard environment isolation का विकल्प नहीं हैं।
Workflow observabilityRun और step status, logs, artifacts, history, Prometheus metrics और OpenTelemetry DAG/step traces।Prompt traces, token और cost telemetry तथा semantic output quality agent या evaluation stack को emit या measure करनी होगी।
Evaluation और guardrailsDeterministic validators, external evaluation commands, approvals और bounded retries के लिए graph।Dagu यह तय नहीं करता कि LLM का उत्तर तथ्यात्मक रूप से सही या किसी domain के लिए सुरक्षित है।
Security और incident responseAuthenticated operations, scoped API keys, notifications, MCP controls और incident-provider routing।Self-hosted audit logging और incident integrations के लिए active license या trial चाहिए; managed Dagu में ये शामिल हैं।

FAQ

Production से पहले व्यावहारिक सवाल

क्या development, staging और production एक Dagu server साझा करें?

Isolation जरूरी हो तो नहीं। अलग Dagu instances चलाएँ ताकि credentials, storage, workers, network, logs और policies एक operational boundary साझा न करें। Definitions को Git Sync से promote करें।

क्या Git Sync production secrets या run history copy करता है?

नहीं। Git Sync DAG files और workflow-authoring skills को repository के साथ align करता है। Secrets, configuration, storage, run history और workers हर instance में local रहते हैं।

क्या Dagu माप सकता है कि agent का उत्तर सही है?

अकेले नहीं। Dagu deterministic tests या evaluation tools को steps की तरह चला सकता है और उनके परिणाम के आधार पर अगला action gate कर सकता है, लेकिन evaluation logic उन tools और domain reviewers की जिम्मेदारी है।

Incident के दौरान MCP client क्या कर सकता है?

Dagu authentication और authorization के अधीन, वह DAGs, runs और logs inspect कर सकता है; validated DAG changes preview या apply कर सकता है; और runs start, enqueue, retry, stop या follow कर सकता है।

अगला कदम

पहले एक agent workflow को productionize करें।

किसी मौजूदा agent command को Dagu DAG में रखें, उसका output validate करें, approval boundary जोड़ें और उसी reviewed definition को isolated development, staging और production instances में promote करें।