Skip to content

Remove failed queue items with files. #379

Description

@Aerglonus

On a previous issue i brought this up about failed tasks due to the live check going off right after the stream ends and how the only way to mitigate this was increasing the live check interval at the expense of missing X time of a live archive.

After ending stream the current queue item will finish correctly (convert and move) and immediately after another queue will start that eventually will fail (since stream no longer live).

Originally posted by @Aerglonus in #360 (comment)

The Twitch API is slow to update when the stream ends. The first archive ended as the video feed stopped. Shortly after the live channel check fires again and Twitch still says the stream is online. Eventually the video task will fail on the 2nd archived as the stream is truly offline but Twitch hasn't updated yet. A higher live check interval helps mitigate this.

I can try to make the video download task be more aggressive and clean up the archive if the process ends and there is no video file.

Originally posted by @Zibbp in #360 (comment)

After increasing the interval not by a lot I noticed that even though the task still fails the workers stop properly but the queue item remains registered and failed download thumbnail files remain (since its where it always fails), was wondering if this could be implemented to not having to remove them manually every time it fails and avoid increasing the interval a lot more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions