crazy-max / docker-rtorrent-rutorrent

rTorrent and ruTorrent Docker image
MIT License
457 stars 103 forks source link

rTorrent: Schedule torrent session save as background task #358

Closed stickz closed 2 weeks ago

stickz commented 2 weeks ago

fixes #281

This commit schedules the session save when a new download is inserted. The benefit if we can thread it as a background task. This avoids disruptions during startup and increases overall speed. The unique hash of the torrent is used as the schedule handle, to prevent accidently overwriting the task. It runs once and immediately.

stickz commented 2 weeks ago

@crazy-max The pull request test feature is broken. I tested this change, it works as intended.

crazy-max commented 2 weeks ago

rebased to take #360