Skip to content

A self-hosted media server and file management system

fix: managed sub task cancel check should also check parent task status

aminnausin8a0007f53eae
diff --git a/app/Jobs/ManagedSubTask.php b/app/Jobs/ManagedSubTask.php
index 689aa83c..5f472fd1 100644
--- a/app/Jobs/ManagedSubTask.php
+++ b/app/Jobs/ManagedSubTask.php
@@ -165,7 +165,7 @@ abstract class ManagedSubTask implements ShouldQueue {
* Determine if the batch has been cancelled...
*/
protected function isCancelled(): bool {
- return $this->batch()?->cancelled() ?? false;
+ return $this->batch()?->cancelled() ?? Task::find($this->taskId)->status === TaskStatus::CANCELLED;
}
/**