Skip to content

Conversation

@bo0tzz
Copy link
Member

@bo0tzz bo0tzz commented Sep 8, 2025

This should help users fix situations like where an immich-go crash left them paused.

Comment on lines 31 to 40
let pausedJobs = $derived.by(() => {
if (!jobs) {
return [];
}
return Object.entries(jobs)
.filter(([_, jobStatus]) => jobStatus.queueStatus?.isPaused)
.map(([jobName]) => jobName as JobName);
});
let pausedJobsCount = $derived(pausedJobs.length);
Copy link
Member

Choose a reason for hiding this comment

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

They can both be const

Copy link
Member Author

Choose a reason for hiding this comment

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

That's confusing lol

Copy link
Member

Choose a reason for hiding this comment

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

You don't reassign them :P

@skatsubo
Copy link
Collaborator

skatsubo commented Sep 9, 2025

Nice! It elegantly solves the problem of unpausing all (incl. hidden) queues.

Does it make sense to add on-hover info with job names? E.g. title={pausedJobs}

image

@jrasm91 jrasm91 enabled auto-merge (squash) September 10, 2025 01:01
@jrasm91 jrasm91 merged commit 5acd6b7 into main Sep 10, 2025
52 checks passed
@jrasm91 jrasm91 deleted the feat/unpause-button branch September 10, 2025 01:06
jochbru pushed a commit to pixelunioneu/immich that referenced this pull request Sep 16, 2025
* feat: add button to unpause all queues

* fix: const

* chore: simplify

* chore: pr feedback

---------

Co-authored-by: Jason Rasmussen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants