backend.api.tasks.resource_based_tasks

Contains the tasks for handling resource-based conformance checking.

Functions

compute_and_store_resource_based_metrics(→ None)

Computes the resource-based metrics and stores it in the app state.

Module Contents

backend.api.tasks.resource_based_tasks.compute_and_store_resource_based_metrics(app: fastapi.FastAPI, job_id: str, celonis_connection: backend.celonis_connection.celonis_connection_manager.CelonisConnectionManager) None

Computes the resource-based metrics and stores it in the app state.

Parameters:
  • app – The FastAPI application instance.

  • job_id – The job ID for tracking the task.

  • celonis_connection – The CelonisConnectionManager instance.

  • resource_column_name – The name of the resource column in the DataFrame.

Raises:

RuntimeError – If the DataFrame is empty.