Skip to content

Conversation

@robholland
Copy link
Contributor

No description provided.

workflow_execution: Temporal::Api::Common::V1::WorkflowExecution.new(
workflow_id: workflow_id,
run_id: run_id,
request_id: SecureRandom.uuid
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't a field on WorkflowExecution but on the higher ResetWorkflowExecutionRequest so I don't think this method would ever have worked.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also it's optional, so providing a random string that we don't return anyway doesn't feel useful.

Rob Holland added 2 commits March 12, 2021 11:26
Adjust API a little so that we namespace is taken from the workflow if
it's non-default.
lib/temporal.rb Outdated
response.run_id
end

def terminate_workflow(workflow, workflow_id:, **options)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please make it look like coinbase/cadence-ruby#19?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean the method signature? I think it should line up with start_workflow/schedule_workflow, and they use kwargs. terminate_workflow_execution takes namespace as an argument so I think ExecutionOptions should be used so that the Workflow classes namespace configuration is taken into account (as for start/schedule).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the method signature, although left namespace as nillable because it has a default value we can use.

@robholland robholland requested a review from antstorm March 17, 2021 17:25
@antstorm antstorm merged commit 81e4875 into coinbase:master Mar 18, 2021
@robholland robholland deleted the rh-termination branch April 9, 2021 08:15
@antstorm antstorm added the synced Ported to cadence-ruby label Aug 23, 2021
christopherb-stripe pushed a commit to christopherb-stripe/temporal-ruby that referenced this pull request Jan 19, 2022
…nal-with-start

Update our FailWorkflowTask logic's call to ErrorHandler.handle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

synced Ported to cadence-ruby

Development

Successfully merging this pull request may close these issues.

2 participants