temporalio / sdk-java

Temporal Java SDK
https://temporal.io
Apache License 2.0
213 stars 144 forks source link

Add ability to disable workflow worker #1032

Open Spikhalskiy opened 2 years ago

Spikhalskiy commented 2 years ago

Cross-posting from GoSDK: https://github.com/temporalio/sdk-go/issues/636

cretz commented 2 years ago

Note, we had to add an option in Go because we allowed registering of workflows after the worker started. If Java requires all registration happen before worker is started, you can just not turn on the workflow worker/poller if no workflows were registered (same for activity).