Skip to main content

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

Metadata

Release files for genesis-retrieve-task 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for genesis-retrieve-task 0.1.1
File Size Uploaded Provenance Actions
genesis_retrieve_task-0.1.1.tar.gz 3.8 kB Without provenance Details for genesis_retrieve_task-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for genesis-retrieve-task 0.1.1
File Interpreter ABI Platform Actions
genesis_retrieve_task-0.1.1-py3-none-any.whl Python 3 none any Details for genesis_retrieve_task-0.1.1-py3-none-any.whl

Total release size: 8.6 kB

Release files / genesis_retrieve_task-0.1.1.tar.gz

Download URL genesis_retrieve_task-0.1.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9faac4c92d81b9132fd770c327c47a13f11db1383d57707f59d0bb52bf11ce05
BLAKE2b-256 checksum
How to use checksums
a6d56b993e34589a552cbe43dc582a75837b1abd521a626a8eec9b1eb5da7c86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.2 Darwin/23.2.0

Release files / genesis_retrieve_task-0.1.1-py3-none-any.whl

Download URL genesis_retrieve_task-0.1.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15e9264f338d02340209f2b15c9c77875ccf43bc34ae71bc327c8ba1148e7ce7
BLAKE2b-256 checksum
How to use checksums
220ff3159e2f4f0d905d6c3fe08d79533d7a2070bf710b3d24c9f5294ead6d3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.2 Darwin/23.2.0

Security for genesis-retrieve-task 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page