aboutsummaryrefslogtreecommitdiff
path: root/files/torque.ini
blob: 728bd641bea53477d5b365ee7055ac715cb2840c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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