Files
bugsink/sentry/assemble.py
Klaas van Schelven eb266d805c PoC of uploading sourcemap artifact bundles
* debug_id-only
* various TODOs (e.g. auth, async, retention)

See #19
2025-04-10 10:30:30 +02:00

17 lines
476 B
Python

# from src/sentry/tasks/assemble.py
def enum(**named_values):
"""Creates an enum type."""
return type("Enum", (), named_values)
ChunkFileState = enum(
OK="ok", # File in database
NOT_FOUND="not_found", # File not found in database
CREATED="created", # File was created in the request and send to the worker for assembling
ASSEMBLING="assembling", # File still being processed by worker
ERROR="error", # Error happened during assembling
)