-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add cloud tasks support #300
Comments
+1 |
Any update on this? |
No update, we didn't plan to support any Google Cloud services as it may be a huge task. Most Google Cloud Services works in the same way so I plan to create a section on the documentation explaining how someone can integrate them without needing and extension (it's mainly authentication and gRCP integration with Quarkus gRCP). |
That would be very helpful. Thanks! |
+1 |
I've been using Cloud Tasks in my quarkus application for a while. I hope I didn't miss anything because it's been a while and hard to extract needed parts. To make it work as native image I added following to pom.xml
And to initialize and authenticate I do following.
|
Thanks @ayhanap these steps are the basic steps for supporting any Google Cloud services: declaring the dependency with exclusion, if gRCP is used: excluding the dependency and importing the Quarkuse one, injecting authentication and initiating a client. To make it looks more like an extension you can create a CDI producer for the client. I still have plan to add a documentation page for it, I may borrow the code for your example ;) I think you don't need to exclude
And for checker-qual and animal-sniffer, excluding them should be only needed when the lib is integrated into a Quarkus extension. |
I got inspired by existing code from other gcloud services, I just copied the storage one I guess :) Might be right about unnecessary exclusions, been a while don't remember if they caused any issues. Feel free to use it as you like, it's just the sample code from https://cloud.google.com/tasks/docs/creating-http-target-tasks#java and some modifications for authentication. |
Add a module to support cloud tasks creation.
The text was updated successfully, but these errors were encountered: