yapapi
yapapi copied to clipboard
`app_key = self.cluster.service_runner._job.engine._api_config.app_key`
-
app_key
is available in an easy way only on theGolem
instance -
app_key
is necessary to authorize requests sent via the network websocket -
Golem
instance is usually pretty far in the code from places where we use websockets
--> Thus the super-ugly line in the title.
I'm not sure what to do with this.
The best solution would be - imho - to somehow just hide the app_key
, so that it would be added to requests in an invisible way. I'm not sure though if there is a way to do this in a clean way.
Maybe we could consider some "just simple request/response" layer over the websocket, built in yapapi
? <- Also probably not the best idea :(