mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-10 15:35:51 +00:00
loop task (#1317)
This commit is contained in:
parent
3b2e2de197
commit
521e355591
2 changed files with 16 additions and 3 deletions
|
@ -510,3 +510,19 @@ class WorkflowContextManager:
|
|||
await self.workflow_run_contexts[workflow_run_id].register_block_parameters(
|
||||
self.aws_client, parameters, organization
|
||||
)
|
||||
|
||||
def add_context_parameter(self, workflow_run_id: str, context_parameter: ContextParameter) -> None:
|
||||
self._validate_workflow_run_context(workflow_run_id)
|
||||
self.workflow_run_contexts[workflow_run_id].parameters[context_parameter.key] = context_parameter
|
||||
|
||||
async def set_parameter_values_for_output_parameter_dependent_blocks(
|
||||
self,
|
||||
workflow_run_id: str,
|
||||
output_parameter: OutputParameter,
|
||||
value: dict[str, Any] | list | str | None,
|
||||
) -> None:
|
||||
self._validate_workflow_run_context(workflow_run_id)
|
||||
await self.workflow_run_contexts[workflow_run_id].set_parameter_values_for_output_parameter_dependent_blocks(
|
||||
output_parameter,
|
||||
value,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue