facundoolano / feedi

A personal news aggregator and Mastodon client
GNU Affero General Public License v3.0
888 stars 28 forks source link

Experiment with task locking #46

Closed facundoolano closed 11 months ago

facundoolano commented 11 months ago

This explores using a lockfile for background tasks so we can run more than one worker process without the cron tasks running multiple times in parallel (and without having to manage a separate task running process).

A lock file lib was used instead of default Huey locking, since the latter it's not supported for MiniHuey.

facundoolano commented 11 months ago

Merging for now to see it in action, may revert later.