jina-ai / jina

☁️ Build multimodal AI applications with cloud-native stack
https://docs.jina.ai
Apache License 2.0
20.63k stars 2.21k forks source link

A type check before appending #6045

Closed ai-naymul closed 10 months ago

ai-naymul commented 10 months ago

Describe your proposal/problem

Should we make a type check in the push function on the request parameter before appending it to the _requests list? @JoanFM

Reference: https://github.com/jina-ai/jina/blob/master/jina/serve/runtimes/worker/batch_queue.py

Environment

Like that:

mutta

JoanFM commented 10 months ago

There is no need since noone has yet raised an issue because of this. If you have seen any case where this is a problem, please report and share a way to reproduce.

Thanks for the suggestion

ai-naymul commented 10 months ago

There is no need since noone has yet raised an issue because of this. If you have seen any case where this is a problem, please report and share a way to reproduce.

Thanks for the suggestion

Got it

ai-naymul commented 10 months ago

Should we add a try except block in the handle_request function: lokka

Like that: fokka

And should we make the shutdown function into two part one for the resource: jokka

Like that: eokka

Code reference: jina/serve/runtimes/servers/load_balancer.py

ai-naymul commented 10 months ago

Should we add a try except block in the handle_request function: lokka

Like that: fokka

And should we make the shutdown function into two part one for the resource: jokka

Like that: eokka

Code reference: jina/serve/runtimes/servers/load_balancer.py

@JoanFM

JoanFM commented 10 months ago

There is no need until any issue appears because of that.