Task retrieval service for Genesis video processing pipeline
Project description
genesis-retrieve-task
Task retrieval component for Genesis video processing pipeline.
Description
Retrieves task information from the database based on task ID.
Installation
pip install git+https://github.com/stevenge-godscode/genesis-retrieve-task.git
Usage
from genesis_retrieve_task.processor import TaskRetriever
retriever = TaskRetriever()
result = retriever.get_task(task_id=123)
Database Schema
-- task_info table
CREATE TABLE task_info (
task_id INT PRIMARY KEY AUTO_INCREMENT,
task_name VARCHAR(50),
task_text VARCHAR(100) NOT NULL,
user_id INT NOT NULL,
material_id INT NOT NULL,
task_status TINYINT NOT NULL DEFAULT 0,
subscribe_flag TINYINT DEFAULT 0,
template_id VARCHAR(100),
deleted TINYINT DEFAULT 0,
create_user VARCHAR(20),
create_time DATETIME,
update_user VARCHAR(20),
update_time DATETIME
);
-- material_info table (referenced)
CREATE TABLE material_info (
material_id INT PRIMARY KEY AUTO_INCREMENT,
material_path VARCHAR(100) NOT NULL
-- other fields...
);
API
get_task(task_id: int)
Returns task information including:
- task_id
- task_name
- task_text
- material_path
- task_status
update_task_status(task_id: int, status: int)
Updates task status. Available statuses:
- 0: PENDING
- 1: PROCESSING
- 2: COMPLETED
- 3: FAILED
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file genesis_retrieve_task-0.1.1.tar.gz.
File metadata
- Download URL: genesis_retrieve_task-0.1.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9faac4c92d81b9132fd770c327c47a13f11db1383d57707f59d0bb52bf11ce05
|
|
| MD5 |
1a0b6ea1ea4c163c7cd1de6b35faf8c6
|
|
| BLAKE2b-256 |
a6d56b993e34589a552cbe43dc582a75837b1abd521a626a8eec9b1eb5da7c86
|
File details
Details for the file genesis_retrieve_task-0.1.1-py3-none-any.whl.
File metadata
- Download URL: genesis_retrieve_task-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15e9264f338d02340209f2b15c9c77875ccf43bc34ae71bc327c8ba1148e7ce7
|
|
| MD5 |
f682165d4e2c0619aee2678af943ba85
|
|
| BLAKE2b-256 |
220ff3159e2f4f0d905d6c3fe08d79533d7a2070bf710b3d24c9f5294ead6d3a
|