The latest release version 0.8 is incorrect. #5559

Closed
opened 2026-02-21 18:11:37 -05:00 by yindo · 3 comments
Owner

Originally created by @haike-1213 on GitHub (Sep 11, 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

0.8

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

The latest release version 0.8 is incorrect.

✔️ Expected Behavior

image

Actual Behavior

ImportError: cannot import name 'GenerateTaskStoppedException' from 'core.app.apps.base_app_queue_manager'

Originally created by @haike-1213 on GitHub (Sep 11, 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 0.8 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce The latest release version 0.8 is incorrect. ### ✔️ Expected Behavior ![image](https://github.com/user-attachments/assets/46d2eecb-bcaa-4f22-98ef-0aa55c92f452) ### ❌ Actual Behavior ImportError: cannot import name 'GenerateTaskStoppedException' from 'core.app.apps.base_app_queue_manager'
yindo added the 🐞 bug🤔 cant-reproduce labels 2026-02-21 18:11:37 -05:00
yindo closed this issue 2026-02-21 18:11:37 -05:00
Author
Owner

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

The ImportError occurs because the exception GenerateTaskStoppedException is not defined in the core.app.apps.base_app_queue_manager module. Instead, the correct exception defined in the module is GenerateTaskStoppedError.

To fix the ImportError, you should import GenerateTaskStoppedError instead of GenerateTaskStoppedException.

Here is the relevant part of the code showing the correct exception definition:

class GenerateTaskStoppedError(Exception):
    pass

So, the import statement should be:

from core.app.apps.base_app_queue_manager import GenerateTaskStoppedError

[1]

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Sep 11, 2024): <!-- Answer --> The ImportError occurs because the exception `GenerateTaskStoppedException` is not defined in the `core.app.apps.base_app_queue_manager` module. Instead, the correct exception defined in the module is `GenerateTaskStoppedError`. To fix the ImportError, you should import `GenerateTaskStoppedError` instead of `GenerateTaskStoppedException`. Here is the relevant part of the code showing the correct exception definition: ```python class GenerateTaskStoppedError(Exception): pass ``` So, the import statement should be: ```python from core.app.apps.base_app_queue_manager import GenerateTaskStoppedError ``` <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/app/apps/base_app_queue_manager.py)</sup> <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Sep 11, 2024):

image
@crazywoola commented on GitHub (Sep 11, 2024): <img width="671" alt="image" src="https://github.com/user-attachments/assets/3e48f263-59d3-4947-9ef2-b872985fe902">
Author
Owner

@haike-1213 commented on GitHub (Sep 11, 2024):

image
@crazywoola

@haike-1213 commented on GitHub (Sep 11, 2024): ![image](https://github.com/user-attachments/assets/c2001ad5-6be9-467d-b4a6-7ddf8f116c09) @crazywoola
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5559