aboutsummaryrefslogtreecommitdiff
path: root/files/torque.ini
diff options
context:
space:
mode:
Diffstat (limited to 'files/torque.ini')
-rw-r--r--files/torque.ini68
1 files changed, 68 insertions, 0 deletions
diff --git a/files/torque.ini b/files/torque.ini
new file mode 100644
index 0000000..728bd64
--- /dev/null
+++ b/files/torque.ini
@@ -0,0 +1,68 @@
+# The default "pyrotorque" configuration file
+#
+# For details, see http://code.google.com/p/pyroscope/wiki/QueueManager#Configuration
+#
+
+[TORQUE]
+# Job scheduler config, see
+# http://readthedocs.org/docs/apscheduler/en/latest/#scheduler-configuration-options
+
+; Maximum number of persistent threads in the pool
+apscheduler.threadpool.core_threads = 1
+
+; Maximum number of total threads in the pool
+apscheduler.threadpool.max_threads = 1
+
+; Seconds to keep non-core worker threads waiting for new tasks
+apscheduler.threadpool.keepalive = 20
+
+; Maximum time in seconds for the job execution to be allowed to delay before it is considered a misfire
+apscheduler.misfire_grace_time = 7
+
+; Roll several pending executions of jobs into one
+apscheduler.coalesce = True
+
+
+# For job handler documentation, see
+# http://code.google.com/p/pyroscope/wiki/QueueManager#Configuration
+#
+# For details on the schedule syntax, see
+# http://readthedocs.org/docs/apscheduler/en/latest/cronschedule.html
+
+# Queue manager job
+job.queue.handler = pyrocore.torrent.queue:QueueManager
+job.queue.schedule = second=*/15
+job.queue.active = True
+job.queue.dry_run = False
+job.queue.quiet = False
+
+; Minimum number of items in 'downloading' state (trumps 'start_at_once')
+job.queue.downloading_min = 1
+; Maximum number of items in 'downloading' state (also counts items that ignore commands)
+job.queue.downloading_max = 2
+; Maximum number of items to start in one run
+job.queue.start_at_once = 1
+; Filter for startable items ("is_open=no is_active=no is_complete=no" is implied)
+job.queue.startable = is_ignored=0 message= prio>0
+; Filter for downloading item count ("is_active=yes is_complete=no" is implied)
+;job.queue.downloading = down>0
+
+# Connection statistics
+job.connstats.handler = pyrocore.torrent.jobs:EngineStats
+job.connstats.schedule = minute=*
+job.connstats.active = True
+
+# Tree watch
+job.treewatch.handler = pyrocore.torrent.watch:TreeWatch
+job.treewatch.schedule = hour=*
+job.treewatch.active = False
+job.treewatch.dry_run = False
+job.treewatch.quiet = False
+
+; Path or list of paths (MUST be set when active=True)
+job.treewatch.path =
+; "start" to load items as startable (in queue mode) or started
+job.treewatch.load_mode = normal
+; Queue mode means "start" items keep their normal prio
+; (it's NOT set to "off", but they're also not immediately started)
+job.treewatch.queued = False