logs list doesn't maintain a consistent count across pages #5379

Closed
opened 2026-02-21 18:10:40 -05:00 by yindo · 2 comments
Owner

Originally created by @rickythink on GitHub (Sep 4, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

v0.7.3 & cloud version

Cloud or Self Hosted

Cloud, Self Hosted (Docker), Self Hosted (Source)

Steps to reproduce

  1. Navigate to the /<app_id>/logs page.
  2. Enter a simple keyword, for example, 1.
  3. The number of results across different pages will not maintain a consistent count.

✔️ Expected Behavior

Should be a consistent count acrocss different pages

Actual Behavior

Not a consistent count

Originally created by @rickythink on GitHub (Sep 4, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version v0.7.3 & cloud version ### Cloud or Self Hosted Cloud, Self Hosted (Docker), Self Hosted (Source) ### Steps to reproduce 1. Navigate to the /<app_id>/logs page. 2. Enter a simple keyword, for example, 1. 3. The number of results across different pages will not maintain a consistent count. ### ✔️ Expected Behavior Should be a consistent count acrocss different pages ### ❌ Actual Behavior Not a consistent count
yindo added the 🐞 bug label 2026-02-21 18:10:40 -05:00
yindo closed this issue 2026-02-21 18:10:41 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 4, 2024):

@rickythink Hello there! I'm here to assist you with bug solving, answering questions, and becoming a contributor. If you need any help, feel free to ask.

The inconsistency in the count across different pages in the logs list might be due to the caching mechanism used in the logs list feature. The useSWR hook, which includes built-in caching, is used to fetch the logs. This can lead to inconsistencies if the data changes on the server but the cache is not updated immediately [1][2].

To address this issue, you might want to ensure that the cache is invalidated or updated appropriately when new data is fetched. This can help maintain a consistent count across different pages.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Sep 4, 2024): <!-- Greeting --> @rickythink Hello there! I'm here to assist you with bug solving, answering questions, and becoming a contributor. If you need any help, feel free to ask. <!-- Answer --> The inconsistency in the count across different pages in the logs list might be due to the caching mechanism used in the logs list feature. The `useSWR` hook, which includes built-in caching, is used to fetch the logs. This can lead to inconsistencies if the data changes on the server but the cache is not updated immediately <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/app/components/app/log/index.tsx)</sup><sup>[[2]](https://github.com/langgenius/dify/blob/main/web/app/components/app/workflow-log/index.tsx)</sup>. To address this issue, you might want to ensure that the cache is invalidated or updated appropriately when new data is fetched. This can help maintain a consistent count across different pages. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@Gaocarri commented on GitHub (Sep 25, 2024):

it seems backend query multiple messages with unique conversationId

@Gaocarri commented on GitHub (Sep 25, 2024): it seems backend query multiple messages with unique conversationId
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5379