MCPcopy Index your code
hub / github.com/Zipstack/unstract / error

Method error

workers/shared/models/scheduler_models.py:154–170  ·  view source on GitHub ↗

Create an error result.

(
        cls,
        error: str,
        execution_id: str | None = None,
        workflow_id: str | None = None,
        pipeline_id: str | None = None,
        message: str = "Execution failed",
    )

Source from the content-addressed store, hash-verified

152
153 @classmethod
154 def error(
155 cls,
156 error: str,
157 execution_id: str | None = None,
158 workflow_id: str | None = None,
159 pipeline_id: str | None = None,
160 message: str = "Execution failed",
161 ) -> "SchedulerExecutionResult":
162 """Create an error result."""
163 return cls(
164 status=SchedulerExecutionStatus.ERROR,
165 execution_id=execution_id,
166 workflow_id=workflow_id,
167 pipeline_id=pipeline_id,
168 message=message,
169 error=error,
170 )
171
172
173@dataclass

Callers 15

run_commandMethod · 0.45
run_containerMethod · 0.45
cleanupMethod · 0.45
__private_loginMethod · 0.45
__image_existsMethod · 0.45
get_imageMethod · 0.45
run_containerMethod · 0.45
get_container_statusMethod · 0.45
convert_str_to_dictMethod · 0.45

Calls

no outgoing calls

Tested by 9

test_connectionMethod · 0.36
test_connectionMethod · 0.36
test_credentialsMethod · 0.36
test_connectorsMethod · 0.36
test_connectionFunction · 0.36
test_webhookMethod · 0.36
test_pluginMethod · 0.36