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

[Swift] Allow a WorkflowHost to be configured to run on a specific queue #144

Open
davidapgar opened this issue May 22, 2019 · 1 comment
Labels

Comments

@davidapgar
Copy link
Contributor

As of right now, all workflows assume they are running on the main queue (and additional assertions are being added to ensure this).

While adding assertions, it's been brought up that we should make this configurable:
square/workflow#362 (comment)

Add support for configuring the queue a workflow runs on.

@zach-klippenstein
Copy link
Collaborator

zach-klippenstein commented May 22, 2019

FYI we do this in Kotlin via the baseContext parameter to WorkflowHost.Factory (or any of the run methods, which all take a context override), which lets you specify the CoroutineDispatcher to execute the runtime one.

https://github.com/square/workflow/blob/82ecbbc446c07663aa68af31de0b9ad52d1a0878/kotlin/workflow-runtime/src/main/java/com/squareup/workflow/WorkflowHost.kt#L67

https://github.com/square/workflow/blob/82ecbbc446c07663aa68af31de0b9ad52d1a0878/kotlin/workflow-runtime/src/main/java/com/squareup/workflow/WorkflowHost.kt#L84-L88

@rjrjr rjrjr transferred this issue from square/workflow May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants