Skip to content
chros73 edited this page Jul 26, 2016 · 8 revisions

Queue Manager

The core concept of the setup is completely based on moving data AND meta files all around the place:

  • there's a .downloading directory with categories (sub-directories) with which rtorrent will start downloading new torrents (these are the watch directories in .rtorrent-config.rc)
  • when a download is finished rtorrent moves their data from incomplete directory AND meta files (from one of the sub-directories of .downloading directory) into their final place (meaning one of the sub-directories of .completed directory). The .downloading directories get empty all the time in this way.
  • the .queue directory with categories (sub-directories) contain meta files that should be moved into one of the sub-directories of .downloading dir to be able to start them by rtorrent when there's free slot in the downloading queue
  • there are 3 predefined categories/directory for rotating (deleting data) torrents:
    • rotating (means special group) and unsafe categories
    • .delqueue directory: it should contain only symlinks to deletable meta files
  • there's also an unsafe_data custom variable defined in rtorrent that makes torrents deletable (value 2 means that the torrent is in delete-queue, meaning .delqueue directory)

There's only 1 small queueTorrent.sh queue manager script with rotating (deleting data) capability and category support, that realize all the above mentioned tasks.

It contains 2 functionality:

  • downloading queue manager that will queue torrents if there's free slot and free disk space for them
  • disk free space manager that will delete data to make free space for the newcomers (this function is called from the downloading queue manager)

It runs from cron in every 5 minutes.

Clone this wiki locally