feat: Introduce bot-digitador service for automated data entry in Integración Total. Add CLI and GUI interfaces for CSV processing, implement auto-start functionality on Windows, and enhance README with setup instructions and usage details. Include necessary configurations in docker-compose for service integration.

This commit is contained in:
erik
2026-08-09 21:26:56 -05:00
parent a3b4c7fc47
commit e9b766281a
74 changed files with 11177 additions and 115 deletions
+16 -1
View File
@@ -40,7 +40,7 @@ class Worker:
@dataclass
class Job:
id: str
worker_id: str
worker_id: Optional[str]
status: str = JobStatus.PENDING.value
title: str = ""
excel_key: str = ""
@@ -54,10 +54,25 @@ class Job:
finished_at: Optional[str] = None
job_id: Optional[str] = None
task_id: Optional[str] = None
parent_download_job_id: Optional[str] = None
shard_index: Optional[int] = None
shard_count: Optional[int] = None
def to_dict(self) -> dict:
return asdict(self)
@property
def is_distributed_parent(self) -> bool:
return (
self.parent_download_job_id is None
and self.shard_count is not None
and int(self.shard_count) > 1
)
@property
def is_shard(self) -> bool:
return bool(self.parent_download_job_id)
@dataclass
class JobEventRecord: