Skip to content

feat(update): 调整更新阻塞逻辑 - #336

Open
HarcoChen wants to merge 1 commit into
MistEO:mainfrom
HarcoChen:feat/PendingUpdate
Open

feat(update): 调整更新阻塞逻辑#336
HarcoChen wants to merge 1 commit into
MistEO:mainfrom
HarcoChen:feat/PendingUpdate

Conversation

@HarcoChen

@HarcoChen HarcoChen commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

允许下载时启动任务,改为pending状态才阻塞更新

Summary by Sourcery

Refine update-blocking logic so that only a pending/downloaded update install blocks auto task startup, allowing background downloads to proceed concurrently with task execution.

Bug Fixes:

  • Prevent auto-install from triggering while an auto-started task dispatch is still in progress, avoiding premature update installation for small downloads.

Enhancements:

  • Only block dispatch of auto-start tasks when an update package is already downloaded and pending install, not while the update is still downloading in the background.
  • Add a settlement callback mechanism so task start events can report completion status back to the update logic and trigger a follow-up install check.

允许下载时启动任务,改为pending状态阻塞更新

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

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

Successfully merging this pull request may close these issues.

1 participant