본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)48k · #4343

dbos-python

하는 일

이 가이드는 DBOS라는 도구를 사용해 실패할 가능성이 적은 Python 프로그램을 만드는 방법을 알려 줍니다. 무엇인가 잘못되더라도 안정적으로 실행되도록 코드를 구성하는 방법을 보여 줍니다.

사용하는 경우

  • ✓기존 Python 코드에 DBOS를 추가할 때.
  • ✓새 프로그램 부분(워크플로와 단계)을 만들 때.
  • ✓큐를 사용해 동시에 실행되는 작업 수를 관리할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/dbos-python/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/dbos-python/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Python 프로그램에 DBOS를 어떻게 설정하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

DBOS는 코드를 '워크플로'와 '단계'로 정리해 작동합니다. 단계는 실패할 수 있거나 시간이 걸리는 작업을 처리하고, 워크플로는 이 단계들을 안정적으로 조율합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

DBOS Python Best Practices

Guide for building reliable, fault-tolerant Python applications with DBOS durable workflows.

When to Use

Reference these guidelines when:

  • Adding DBOS to existing Python code
  • Creating workflows and steps
  • Using queues for concurrency control
  • Implementing workflow communication (events, messages, streams)
  • Configuring and launching DBOS applications
  • Using DBOSClient from external applications
  • Testing DBOS applications

Rule Categories by Priority

Priority Category Impact Prefix
1 Lifecycle CRITICAL lifecycle-
2 Workflow CRITICAL workflow-
3 Step HIGH step-
4 Queue HIGH queue-
5 Communication MEDIUM comm-
6 Pattern MEDIUM pattern-
7 Testing LOW-MEDIUM test-
8 Client MEDIUM client-
9 Advanced LOW advanced-

Critical Rules

DBOS Configuration and Launch

A DBOS application MUST configure and launch DBOS inside its main function:

import os
from dbos import DBOS, DBOSConfig

@DBOS.workflow()
def my_workflow():
    pass

if __name__ == "__main__":
    config: DBOSConfig = {
        "name": "my-app",
        "system_database_url": os.environ.get("DBOS_SYSTEM_DATABASE_URL"),
    }
    DBOS(config=config)
    DBOS.launch()

Workflow and Step Structure

Workflows are comprised of steps. Any function performing complex operations or accessing external services must be a step:

@DBOS.step()
def call_external_api():
    return requests.get("https://api.example.com").json()

@DBOS.workflow()
def my_workflow():
    result = call_external_api()
    return result

Key Constraints

  • Do NOT call DBOS.start_workflow or DBOS.recv from a step
  • Do NOT use threads to start workflows - use DBOS.start_workflow or queues
  • Workflows MUST be deterministic - non-deterministic operations go in steps
  • Do NOT create/update global variables from workflows or steps

How to Use

Read individual rule files for detailed explanations and examples:

references/lifecycle-config.md
references/workflow-determinism.md
references/queue-concurrency.md

References

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
자주 묻는 질문

워크플로와 단계는 무엇인가요?

워크플로는 프로그램이 수행하는 일련의 동작입니다. 단계는 워크플로 안에서 외부 서비스 호출 같은 특정 작업을 수행하는 더 작은 부분입니다.

왜 제 코드는 안정적이어야 하나요?

안정적인 프로그램은 오류나 실패가 생겨도 계속 실행되어, 작업이 중단 없이 완료되도록 합니다.

동시성 제어를 위한 큐란 무엇인가요?

큐는 프로그램이 동시에 실행하는 작업 수를 관리해 과부하를 막고 모든 것이 체계적으로 실행되도록 돕습니다.

상세 정보

작성자의 원본 설명

Guide for building reliable, fault-tolerant Python applications with DBOS durable workflows. Use when adding DBOS to existing Python code, creating workflows and steps, or using queues for concurrency control.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4343
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬