File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 51
51
IssueConnStr : "" ,
52
52
IssueIndexerName : "gitea_issues" ,
53
53
IssueQueueType : LevelQueueType ,
54
- IssueQueueDir : "indexers/issues.queue " ,
54
+ IssueQueueDir : "queues/common " ,
55
55
IssueQueueConnStr : "" ,
56
56
IssueQueueBatchNumber : 20 ,
57
57
@@ -76,7 +76,7 @@ func newIndexerService() {
76
76
Indexer .IssueIndexerName = sec .Key ("ISSUE_INDEXER_NAME" ).MustString (Indexer .IssueIndexerName )
77
77
78
78
Indexer .IssueQueueType = sec .Key ("ISSUE_INDEXER_QUEUE_TYPE" ).MustString (LevelQueueType )
79
- Indexer .IssueQueueDir = sec .Key ("ISSUE_INDEXER_QUEUE_DIR" ).MustString (path .Join (AppDataPath , "indexers/issues.queue " ))
79
+ Indexer .IssueQueueDir = sec .Key ("ISSUE_INDEXER_QUEUE_DIR" ).MustString (path .Join (AppDataPath , "queues/common " ))
80
80
Indexer .IssueQueueConnStr = sec .Key ("ISSUE_INDEXER_QUEUE_CONN_STR" ).MustString ("" )
81
81
Indexer .IssueQueueBatchNumber = sec .Key ("ISSUE_INDEXER_QUEUE_BATCH_NUMBER" ).MustInt (20 )
82
82
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ func GetQueueSettings(name string) QueueSettings {
48
48
q .Name = name
49
49
50
50
// DataDir is not directly inheritable
51
- q .DataDir = filepath .Join (Queue .DataDir , name )
51
+ q .DataDir = filepath .Join (Queue .DataDir , "common" )
52
52
// QueueName is not directly inheritable either
53
53
q .QueueName = name + Queue .QueueName
54
54
for _ , key := range sec .Keys () {
@@ -103,11 +103,11 @@ func NewQueueService() {
103
103
Queue .WrapIfNecessary = sec .Key ("WRAP_IF_NECESSARY" ).MustBool (true )
104
104
Queue .MaxAttempts = sec .Key ("MAX_ATTEMPTS" ).MustInt (10 )
105
105
Queue .Timeout = sec .Key ("TIMEOUT" ).MustDuration (GracefulHammerTime + 30 * time .Second )
106
- Queue .Workers = sec .Key ("WORKERS" ).MustInt (1 )
106
+ Queue .Workers = sec .Key ("WORKERS" ).MustInt (0 )
107
107
Queue .MaxWorkers = sec .Key ("MAX_WORKERS" ).MustInt (10 )
108
108
Queue .BlockTimeout = sec .Key ("BLOCK_TIMEOUT" ).MustDuration (1 * time .Second )
109
109
Queue .BoostTimeout = sec .Key ("BOOST_TIMEOUT" ).MustDuration (5 * time .Minute )
110
- Queue .BoostWorkers = sec .Key ("BOOST_WORKERS" ).MustInt (5 )
110
+ Queue .BoostWorkers = sec .Key ("BOOST_WORKERS" ).MustInt (1 )
111
111
Queue .QueueName = sec .Key ("QUEUE_NAME" ).MustString ("_queue" )
112
112
Queue .SetName = sec .Key ("SET_NAME" ).MustString ("" )
113
113
You can’t perform that action at this time.
0 commit comments