Where to find gateway level URL for serverless app

Hi folks, I have an app running on serverless infra. I want to use its http endpoint. I am not able to find a static host which I can use to access the app. When I go inside workers tab under endpoint, I can see it has an option to open HTTP based session but that seems to be associated with worker and not with endpoint itself. I tried accessing by endpoint id as well but it did not work. Would anyone point out please?
No description
5 Replies
nerdylive
nerdylive5w ago
you use the /run
nerdylive
nerdylive5w ago
https://github.com/runpod-workers/worker-whisper this should help you understand better with the code example, rp_handler.py in the src folder is the handler that processes input from the /run
GitHub
GitHub - runpod-workers/worker-whisper: 🎙️ | Whisper Worker for Run...
🎙️ | Whisper Worker for RunPod: Processing and transcribing audio with various Whisper models. Part of RunPod Workers collection. - runpod-workers/worker-whisper
nerdylive
nerdylive5w ago
Send a request | RunPod Documentation
Learn how to construct a JSON request body to send to your custom endpoint, including optional inputs for webhooks, execution policies, and S3-compatible storage, to optimize job execution and resource management.
Job operations | RunPod Documentation
Learn how to use the Runpod Endpoint to manage job operations, including running, checking status, purging queues, and streaming results, with cURL and SDK examples.
blue whale
blue whaleOP5w ago
Thanks for sharing this. I can try. Is it worth to rely the worker id wont change? I want to move and then later I can see this how to implement
nerdylive
nerdylive5w ago
Hmm it's best to not rely on that, what do you need the constant(unchanging worker id's) for? You can just send a /run request to start the job then after the worker starts, there's a way to get the pod or construct the url then return it ( because you'll notice from the docs or from the connect that the url has a specific format) To send the pod/worker id you can use something like this: runpod.serverless.progress_update() like from here https://discord.com/channels/912829806415085598/1238153273077141574 Or use generator handler ( in docs/serverless/workers called generator or async handler

Did you find this page helpful?