mirror of
https://github.com/bugsink/bugsink.git
synced 2025-12-18 02:54:55 -06:00
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
|
|
)
|
|
|