Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the reprocess update type. #154

Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/cpr_sdk/pipeline_general_models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datetime import datetime
from enum import Enum
from typing import Mapping, Any, List, Optional, Sequence, Union
from typing import Any, List, Mapping, Optional, Sequence, Union

from pydantic import BaseModel, field_validator

Expand Down Expand Up @@ -84,6 +84,7 @@ class UpdateTypes(str, Enum):
# DOCUMENT_STATUS = "document_status"
METADATA = "metadata"
REPARSE = "reparse"
REPROCESS = "reprocess"
THOR300 marked this conversation as resolved.
Show resolved Hide resolved


class Update(BaseModel):
Expand All @@ -109,3 +110,13 @@ class ExecutionData(BaseModel):
"""Data unique to a step functions execution that is required at later stages."""

input_dir_path: str


class DocUpdateConfig(BaseModel):
"""
Config for updates not defined as part of IdentifyUpdates.

reprocess_updates: list of document ids to reprocess.
"""

reprocess_updates: list[str]
THOR300 marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion src/cpr_sdk/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
_MAJOR = "1"
_MINOR = "9"
_PATCH = "6"
_PATCH = "7"
_SUFFIX = ""

VERSION_SHORT = "{0}.{1}".format(_MAJOR, _MINOR)
Expand Down
Loading