Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude simulate_retryable_error from wf for system tests #78

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/simple_worker/workers/test_worker.py
Original file line number Diff line number Diff line change
@@ -210,6 +210,8 @@ def execute(self, worker_input: WorkerInput) -> TaskResult[WorkerOutput]:
logs=['This is a log message from TaskResult.']
)

# TODO: Not currently used in any workflow or test
# A new standalone workflow and test scenario should be created
class SimulateRetryableErrorWorker(WorkerImpl):
class WorkerDefinition(TaskDefinition):
name: str = 'TEST_simulate_retryable_error'
7 changes: 0 additions & 7 deletions examples/simple_worker/workers/test_workflow.py
Original file line number Diff line number Diff line change
@@ -56,13 +56,6 @@ class WorkflowOutput(WorkflowImpl.WorkflowOutput):
bytes: str

def workflow_builder(self, workflow_inputs: WorkflowInput) -> None:
simulate_retryable_error_task = SimpleTask(
name=TestWorkers.SimulateRetryableErrorWorker,
task_reference_name='retryable_error',
input_parameters=SimpleTaskInputParameters(dict())
)
self.tasks.append(simulate_retryable_error_task)

simulate_logs_task = SimpleTask(
name=TestWorkers.Logs,
task_reference_name='logs',