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

Configuration to Defer connection to Temporal on Application Start - Eg, using the Extension for the Client - #129

Open
akil-rails opened this issue Nov 19, 2024 · 6 comments
Labels
discussion Under discussion by core devs enhancement New feature or request

Comments

@akil-rails
Copy link
Contributor

I see that the extension connects to the temporal cloud at application start, this is great for workers, but not so good for the client.

I suppose, a common use case would be to use the WorkflowClient in a service layer (say a quarkus REST resource). The service would accept the request, and attempt a start of the workflow, and if it fails, it could decide to store it and try again. The service should be available to accept requests, irrespective of its connectivity to the temporal server, and could in-fact report that in the /q/health endpoint.

A configuration option to do this would be great..

@melloware
Copy link
Contributor

We had discussed this here: #70 cc @rmanibus ?

@melloware melloware added enhancement New feature or request discussion Under discussion by core devs labels Nov 19, 2024
@akil-rails
Copy link
Contributor Author

akil-rails commented Nov 20, 2024

The extension already handles any network break & reconnection gracefully (once the application has started) .
A configuration option to let the application decide if the startup should fail if a connection isn't established will be very useful - specifically for temporal cloud users - the network connectivity can be intermittent, and should not prevent application startups..

@melloware
Copy link
Contributor

@akil-rails any interest in adding this feature?

@akil-rails
Copy link
Contributor Author

Yes, though I need some guidance - I don't understand what part of the extension stops the app from starting ?

@melloware
Copy link
Contributor

@rmanibus can provide some guidance here...

@rmanibus
Copy link
Contributor

Hey, I will have a closer look this weekend, I am quite busy for the rest of the week !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Under discussion by core devs enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants