dagu-org / dagu

Developer-friendly, minimalism Cron alternative, but with much more capabilities. It aims to solve greater problems.
https://dagu.readthedocs.io
GNU General Public License v3.0
1.66k stars 147 forks source link

Dashboard page only shows 100 DAGs #721

Open jonathonc opened 3 days ago

jonathonc commented 3 days ago

The dashboard page only shows 100 DAGs, even if there are more than 100 DAGs in the system

It looks like there is a default limit of 100 here (which is reasonable) https://github.com/dagu-org/dagu/blob/678dd21a05aeb968ffbe9aac01a5b6d46026a232/internal/client/client.go#L311

I can see the API has support for increasing the limit api/v1/dags?limit=xxxx

Thoughts on this? I appreciate we may not want to get all the DAGs in case there are a lot in the system.

What is restricted it to only DAGs executed within the day? Or maybe this time period can be controlled?

Happy to help with a PR, but keen to see how you might want to approach a possible solution.

image

yohamta commented 1 day ago

Thank you very much for submitting the issue and showing interest in contributing a PR! Your input is really helpful.

Currently, when a large number of DAG files are created, performance issues arise due to the need to load a significant amount of data. To address this, I plan to change the storage structure. With the upcoming release of the v2.0 alpha version, I would like to ensure that all DAG execution data for the current day is reflected on the dashboard.

As a temporary workaround, I think that allowing configuration for the page limit might be an idea. If you're interested in contributing a PR, it would be very welcome.

To add config key in the configuration, the following files would need to be modified:

I also welcome any alternative ideas for the workaround. :)