coinbase / temporal-ruby

Ruby SDK for Temporal
Apache License 2.0
213 stars 81 forks source link

Sync Activity is named as AsyncAcitivity in the examples #283

Closed subintp closed 5 months ago

subintp commented 5 months ago

Here AsyncActivity is called in a blocking fashion. But the workflow is named as AsyncActivityWorkflow

require 'activities/async_activity'

class AsyncActivityWorkflow < Temporal::Workflow
  def execute
    AsyncActivity**.execute!**
  end
end
DeRauk commented 5 months ago

The async naming here is referring to the activity, which will not complete until it is signaled by an external event. See https://github.com/coinbase/temporal-ruby?tab=readme-ov-file#asynchronous-completion