Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Deepanshu Agarwal <[email protected]>
  • Loading branch information
DeepanshuA committed Jan 16, 2024
1 parent 2fc8519 commit 3b095cb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions examples/demo_workflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ You should be able to see the following output:
== APP == New counter value is: 11!
== APP == Retry count value is: 0!
== APP == Retry count value is: 1! This print statement verifies retry
== APP == Appending 1 to child_orchestrator_string!
== APP == Appending a to child_orchestrator_string!
== APP == Appending a to child_orchestrator_string!
== APP == Appending 2 to child_orchestrator_string!
== APP == Appending b to child_orchestrator_string!
== APP == Appending b to child_orchestrator_string!
== APP == Appending 3 to child_orchestrator_string!
== APP == Appending c to child_orchestrator_string!
== APP == Appending c to child_orchestrator_string!
== APP == Get response from hello_world_wf after pause call: Suspended
== APP == Get response from hello_world_wf after resume call: Running
== APP == New counter value is: 111!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ def call_activity(self, activity: Callable[[WorkflowActivityContext, TInput], TO
retry_policy: Optional[RetryPolicy] = None) -> task.Task[TOutput]:
self._logger.debug(f'{self.instance_id}: Creating activity {activity.__name__}')
if hasattr(activity, '_dapr_alternate_name'):
act=activity.__dict__['_dapr_alternate_name']
act = activity.__dict__['_dapr_alternate_name']

Check warning on line 66 in ext/dapr-ext-workflow/dapr/ext/workflow/dapr_workflow_context.py

View check run for this annotation

Codecov / codecov/patch

ext/dapr-ext-workflow/dapr/ext/workflow/dapr_workflow_context.py#L66

Added line #L66 was not covered by tests
else:
# this case should ideally never happen
act=activity.__name__
act = activity.__name__
if retry_policy is None:
return self.__obj.call_activity(activity=act, input=input)
return self.__obj.call_activity(activity=act, input=input, retry_policy=retry_policy.obj)

Check warning on line 72 in ext/dapr-ext-workflow/dapr/ext/workflow/dapr_workflow_context.py

View check run for this annotation

Codecov / codecov/patch

ext/dapr-ext-workflow/dapr/ext/workflow/dapr_workflow_context.py#L72

Added line #L72 was not covered by tests
Expand Down

0 comments on commit 3b095cb

Please sign in to comment.