Title: Support thread-safe async conversions · Issue #22 · ConvertAPI/convertapi-library-ruby · GitHub
Open Graph Title: Support thread-safe async conversions · Issue #22 · ConvertAPI/convertapi-library-ruby
X Title: Support thread-safe async conversions · Issue #22 · ConvertAPI/convertapi-library-ruby
Description: We have a use case where some of our conversion requests will be synchronous and some will be asynchronous in the same application. Async requests are specified by a URI path prefix instead of a request param and I don't see a way to add...
Open Graph Description: We have a use case where some of our conversion requests will be synchronous and some will be asynchronous in the same application. Async requests are specified by a URI path prefix instead of a re...
X Description: We have a use case where some of our conversion requests will be synchronous and some will be asynchronous in the same application. Async requests are specified by a URI path prefix instead of a re...
Opengraph URL: https://github.com/ConvertAPI/convertapi-library-ruby/issues/22
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support thread-safe async conversions","articleBody":"We have a use case where some of our conversion requests will be synchronous and some will be asynchronous in the same application.\r\n\r\n[Async requests are specified by a URI path prefix instead of a request param](https://www.convertapi.com/doc/async#webhook-push-notification#asynchronous-conversion-request) and I don't see a way to add that prefix to the request builder in a `ConvertApi::Task` as it is [hard-coded to start with `/convert`](https://github.com/ConvertAPI/convertapi-ruby/blob/master/lib/convert_api/task.rb#L21)\r\n\r\nI could modify the `base_uri` in `ConvertApi::Configuration` but that would change it for _all_ calls to `ConvertApi#convert` in the current thread instead of for a single request.\r\n\r\nAm I missing something?","author":{"url":"https://github.com/danhorst","@type":"Person","name":"danhorst"},"datePublished":"2023-06-14T18:12:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/22/convertapi-library-ruby/issues/22"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b2f319a0-20ff-d6c5-7b49-c61416529927 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BEDC:14919D:B600DB4:EA6F0F1:697F3A91 |
| html-safe-nonce | 53137f6fdccd4672ca3b7eb0bbf6eeeaba1961f364b79c1508798c8b259d95c1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRURDOjE0OTE5RDpCNjAwREI0OkVBNkYwRjE6Njk3RjNBOTEiLCJ2aXNpdG9yX2lkIjoiODE1NzM3MzE2MDE5MTExMzg3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bc12b755218e301149675c0420866416fdf04920f0c7918617f25652768e0de4 |
| hovercard-subject-tag | issue:1757415468 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ConvertAPI/convertapi-library-ruby/22/issue_layout |
| twitter:image | https://opengraph.githubassets.com/84e977bbea9895242ab973190727d632e91e67e645378916818685a42ed07e9e/ConvertAPI/convertapi-library-ruby/issues/22 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/84e977bbea9895242ab973190727d632e91e67e645378916818685a42ed07e9e/ConvertAPI/convertapi-library-ruby/issues/22 |
| og:image:alt | We have a use case where some of our conversion requests will be synchronous and some will be asynchronous in the same application. Async requests are specified by a URI path prefix instead of a re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | danhorst |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/ConvertAPI/convertapi-library-ruby git https://github.com/ConvertAPI/convertapi-library-ruby.git |
| octolytics-dimension-user_id | 37071453 |
| octolytics-dimension-user_login | ConvertAPI |
| octolytics-dimension-repository_id | 133849236 |
| octolytics-dimension-repository_nwo | ConvertAPI/convertapi-library-ruby |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 133849236 |
| octolytics-dimension-repository_network_root_nwo | ConvertAPI/convertapi-library-ruby |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width