R
RunPod•7mo ago
Itay Elgazar

JS endpoint?

Hey, it isn't possible to run JS as serverless code?
Solution:
I think JS SDK not support serverless yet
Jump to solution
11 Replies
nerdylive
nerdylive•7mo ago
Hmm serverless currently uses python I'm not sure if there's some way to execute js on python I'm recommending to use cloudflare workers as an alternative for js handlers
Itay Elgazar
Itay ElgazarOP•7mo ago
I need the GPU 🙂 That's really weird that there's no JS support, if we can deploy a docker image, why does it matter which language we deploy 😮
Madiator2011
Madiator2011•7mo ago
@Itay Elgazar sure we have JS SDK so whould work but cant help much as myself I use python mostly 😄
Madiator2011
Madiator2011•7mo ago
GitHub
GitHub - runpod/js-sdk: JS sdk for runpod
JS sdk for runpod. Contribute to runpod/js-sdk development by creating an account on GitHub.
Madiator2011
Madiator2011•7mo ago
otherwise you might just wrap js code into python what kinda worker you trying to do?
Itay Elgazar
Itay ElgazarOP•7mo ago
@Papa Madiator But i cannot find the function "serverless.start" in JS 😮
Solution
Madiator2011
Madiator2011•7mo ago
I think JS SDK not support serverless yet
Itay Elgazar
Itay ElgazarOP•7mo ago
Yeah. I’m trying to run ffmpeg, I have a code in JS already, I guess I’ll move it to python 😅
nerdylive
nerdylive•7mo ago
It needs sdk-like to connect to the host I guess.. How is that possible haha
digigoblin
digigoblin•7mo ago
Basically all programming languages can call commands from within them to run other programs You can call the JS app from within the Python serverless handler
nerdylive
nerdylive•7mo ago
Oh ya I get the idea now Yeah that is possible
Want results from more Discord servers?
Add your server