Skip to content

Commit

Permalink
ingester progress tracking work
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Mar 30, 2024
1 parent d27eb1f commit 9e78b28
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions dcicutils/progress_constants.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
from datetime import datetime
from enum import Enum


# Constants for progress tracking for smaht-submitr.
# Here only to share between smaht-portal, snovault, and smaht-submitr.

class PROGRESS_INGESTER(Enum):

class _Enum(Enum):
# Automatically make enumerators within the enumeration resolve to its value property.
def __get__(self, instance, owner):
return self.value


class PROGRESS_INGESTER(_Enum):
VALIDATION = "ingester_validation"
INITIATE = "ingester_initiate"
PARSE_LOAD_INITIATE = "ingester_parse_initiate"
Expand All @@ -20,7 +26,7 @@ class PROGRESS_INGESTER(Enum):
NOW = lambda: str(datetime.utcnow()) # noqa


class PROGRESS_PARSE(Enum):
class PROGRESS_PARSE(_Enum):
LOAD_START = "parse_start"
LOAD_ITEM = "parse_item"
LOAD_DONE = "parse_done"
Expand All @@ -46,7 +52,7 @@ class PROGRESS_PARSE(Enum):
NOW = lambda: str(datetime.utcnow()) # noqa


class PROGRESS_LOADXL(Enum):
class PROGRESS_LOADXL(_Enum):
START = "loadxl_start"
START_SECOND_ROUND = "loadxl_start_second_round"
ITEM = "loadxl_item"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dcicutils"
version = "8.8.1.1b15" # TODO: To become 8.8.2
version = "8.8.1.1b16" # TODO: To become 8.8.2
description = "Utility package for interacting with the 4DN Data Portal and other 4DN resources"
authors = ["4DN-DCIC Team <support@4dnucleome.org>"]
license = "MIT"
Expand Down

0 comments on commit 9e78b28

Please sign in to comment.