Skip to content

A self-hosted media server and file management system

fix: embed job does not return if batch is cancelled

aminnausin39ef6bc06d78
diff --git a/app/Jobs/EmbedUidInMetadata.php b/app/Jobs/EmbedUidInMetadata.php
index b92e1f26..22233cf6 100644
--- a/app/Jobs/EmbedUidInMetadata.php
+++ b/app/Jobs/EmbedUidInMetadata.php
@@ -42,7 +42,7 @@ class EmbedUidInMetadata extends ManagedSubTask {
* Execute the job.
*/
public function handle(TaskService $taskService, ServerConfigService $config): void {
- $this->beginSubTask($taskService, "Adding uuid to $this->filePath");
+ if (!$this->beginSubTask($taskService, "Adding uuid to $this->filePath")) return;
try {
$summary = $this->handleEmbed($config);