server.web.routes.v3.cli.task_template

Routes for TaskTemplate.

Attributes

logger

DIALECT

Functions

get_task_template_details_for_workflow(, ...)

Fetch Task Template details (ID, Name, and Version) for a given Workflow.

get_task_template_version_for_tasks() → Any)

Get the task_template_version_ids using repository pattern.

get_requested_cores() → Any)

Get the min, max, and avg of requested cores.

get_most_popular_queue(, db)

Get the most popular queue of the task template.

get_task_template_resource_usage(...)

Unified endpoint for task template resource usage.

get_workflow_tt_status_viz() → Any)

Get the status of the workflows for GUI.

get_tt_error_log_viz() → Any)

Get the error logs for a task template id for GUI.

Module Contents

server.web.routes.v3.cli.task_template.logger[source]
server.web.routes.v3.cli.task_template.DIALECT[source]
server.web.routes.v3.cli.task_template.get_task_template_details_for_workflow(workflow_id: int = Query(..., ge=1), task_template_id: int = Query(..., ge=1), db: sqlalchemy.orm.Session = Depends(get_db)) Any[source]

Fetch Task Template details (ID, Name, and Version) for a given Workflow.

server.web.routes.v3.cli.task_template.get_task_template_version_for_tasks(task_id: int | None = None, workflow_id: int | None = None, db: sqlalchemy.orm.Session = Depends(get_db)) Any[source]

Get the task_template_version_ids using repository pattern.

server.web.routes.v3.cli.task_template.get_requested_cores(task_template_version_ids: str | None = None, db: sqlalchemy.orm.Session = Depends(get_db)) Any[source]

Get the min, max, and avg of requested cores.

Get the most popular queue of the task template.

async server.web.routes.v3.cli.task_template.get_task_template_resource_usage(request_data: jobmon.server.web.schemas.task_template.TaskTemplateResourceUsageRequest, db: sqlalchemy.orm.Session = Depends(get_db)) jobmon.server.web.schemas.task_template.TaskTemplateResourceUsageResponse[source]

Unified endpoint for task template resource usage.

Returns modern Pydantic models suitable for both GUI frontend and Python client consumption with full type safety.

server.web.routes.v3.cli.task_template.get_workflow_tt_status_viz(workflow_id: int, db: sqlalchemy.orm.Session = Depends(get_db)) Any[source]

Get the status of the workflows for GUI.

server.web.routes.v3.cli.task_template.get_tt_error_log_viz(wf_id: int, tt_id: int | None = None, ti_id: int | None = None, page: int = 1, page_size: int = 10, just_recent_errors: str = 'false', cluster_errors: str = 'false', db: sqlalchemy.orm.Session = Depends(get_db)) Any[source]

Get the error logs for a task template id for GUI.