mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 17:38:04 +08:00
revert: revert human input relevant code (#31766)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -432,13 +432,6 @@ class APIWorkflowRunRepository(WorkflowExecutionRepository, Protocol):
|
||||
# while creating pause.
|
||||
...
|
||||
|
||||
def get_workflow_pause(self, workflow_run_id: str) -> WorkflowPauseEntity | None:
|
||||
"""Retrieve the current pause for a workflow execution.
|
||||
|
||||
If there is no current pause, this method would return `None`.
|
||||
"""
|
||||
...
|
||||
|
||||
def resume_workflow_pause(
|
||||
self,
|
||||
workflow_run_id: str,
|
||||
@ -634,19 +627,3 @@ class APIWorkflowRunRepository(WorkflowExecutionRepository, Protocol):
|
||||
[{"date": "2024-01-01", "interactions": 2.5}, ...]
|
||||
"""
|
||||
...
|
||||
|
||||
def get_workflow_run_by_id_and_tenant_id(self, tenant_id: str, run_id: str) -> WorkflowRun | None:
|
||||
"""
|
||||
Get a specific workflow run by its id and the associated tenant id.
|
||||
|
||||
This function does not apply application isolation. It should only be used when
|
||||
the application identifier is not available.
|
||||
|
||||
Args:
|
||||
tenant_id: Tenant identifier for multi-tenant isolation
|
||||
run_id: Workflow run identifier
|
||||
|
||||
Returns:
|
||||
WorkflowRun object if found, None otherwise
|
||||
"""
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user