HomeDevCentral

Provision an utility to kill stuck ffmpeg jobs on Mastodon

Description

Provision an utility to kill stuck ffmpeg jobs on Mastodon

Summary:
Mastodon queue can be stuck by ffmpeg jobs.

If a job uses more than 1 minute CPU time, it's reasonnable
to consider we can skip it.

Meanwhile, regular and legitimate ffmpeg jobs are useful to extract
thumbnails for video and complete in some seconds.

This change provisions an utility to kill ffmpeg jobs
to Sidekiq containers if they spend more than one minute CPU time.

Ref T1492.

Test Plan:
Script has been tested with succes on the Nasqueron instance.

Unit tests are provided with a data sample taken from production.

Reviewers: dereckson

Reviewed By: dereckson

Maniphest Tasks: T1492

Differential Revision: https://devcentral.nasqueron.org/D2037

Details

Provenance
derecksonAuthored on Dec 8 2018, 18:17
derecksonPushed on Dec 9 2018, 00:26
Reviewer
dereckson
Differential Revision
D2037: Provision an utility to kill stuck ffmpeg jobs on Mastodon
Parents
rOPS19930c42fba2: Clean up section headings comments
Branches
Unknown
Tags
Unknown
Tasks
T1492: Federated timeline isn't updated anymore