Source code for nv_ingest_client.primitives.tasks.chart_extraction
# SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES.
# All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=too-few-public-methods
# pylint: disable=too-many-arguments
import logging
from typing import Dict
from pydantic import BaseModel
from .task_base import Task
logger = logging.getLogger(__name__)
[docs]
class ChartExtractionTask(Task):
"""
Object for chart extraction task
"""
def __init__(self) -> None:
"""
Setup Dedup Task Config
"""
super().__init__()
def __str__(self) -> str:
"""
Returns a string with the object's config and run time state
"""
info = ""
info += "chart extraction task\n"
return info
[docs]
def to_dict(self) -> Dict:
"""
Convert to a dict for submission to redis
"""
task_properties = {
"params": {},
}
return {"type": "chart_data_extract", "task_properties": task_properties}