Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

queues?page=1&jobsPerPage=10 pending #865

Open
Makkalay opened this issue Dec 26, 2024 · 6 comments
Open

queues?page=1&jobsPerPage=10 pending #865

Makkalay opened this issue Dec 26, 2024 · 6 comments

Comments

@Makkalay
Copy link

Makkalay commented Dec 26, 2024

Many pending request queues?page=1&jobsPerPage=10 what run minutes
if redis server is down

@Makkalay
Copy link
Author

Makkalay commented Dec 26, 2024

Why is not fas returned 404 or 50X errors?

@felixmosh
Copy link
Owner

You can make the polling every 30 sec or more (check settings).
If one of your services is down, what is the expected behaviour?

@Makkalay
Copy link
Author

Momentan response 50X for example

@felixmosh
Copy link
Owner

I'm not sure I understand the question.
the board updates its data by polling the server, if you services are down... what it should do? stop the polling?

@Makkalay
Copy link
Author

Makkalay commented Dec 26, 2024

In browser in network tab I see 3+ pending connections. Why it start new one if previous not finished?
image

If no redis server started respond with error and not wait for minutes. Or what is that connections?

@Makkalay
Copy link
Author

Makkalay commented Dec 26, 2024

setApiRoutes run at creating of h3Adapter with new (internally called)? And the routes are generated without base path? Because it creates routes on adapter initialization and after setBasePath is called manually when routes already was prior created (without base path)?

 setApiRoutes(routes) {
        routes.forEach(({ route, handler, method: methodOrMethods }) => {
            const methods = Array.isArray(methodOrMethods) ? methodOrMethods : [methodOrMethods];
            methods.forEach((method) => {
                this.registerRoute(route, method, handler);
            });
        });
        return this;
    }
    ```

And is more nice to collect  all routes first in array like this.uiHandler.push({path, handler, method}) and after call an 
foreach with app.router.add(path, handler, method) to create all, or pass that array outside to make manipulations with it and create that routes myself. 

Because app.use(serverAdapter.registerHandlers()); for me not worked well (may be is my bad because i use nitro not pure h3, or not react or  my app api routes work strange after that).  
 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants