mirror of
https://github.com/bugsink/bugsink.git
synced 2026-05-02 21:10:19 -05:00
eb266d805c
* debug_id-only * various TODOs (e.g. auth, async, retention) See #19
17 lines
476 B
Python
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
|
|
)
|
|
|