File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ fn main() -> anyhow::Result<()> {
105
105
106
106
let runner = Runner :: new ( runtime. handle ( ) , connection_pool, environment. clone ( ) )
107
107
. configure_default_queue ( |queue| queue. num_workers ( 5 ) )
108
+ . configure_queue ( "repository" , |queue| queue. num_workers ( 1 ) )
108
109
. register_crates_io_job_types ( )
109
110
. start ( ) ;
110
111
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ impl SyncToGitIndex {
29
29
impl BackgroundJob for SyncToGitIndex {
30
30
const JOB_NAME : & ' static str = "sync_to_git_index" ;
31
31
const PRIORITY : i16 = 100 ;
32
+ const QUEUE : & ' static str = "repository" ;
32
33
33
34
type Context = Arc < Environment > ;
34
35
@@ -165,6 +166,7 @@ pub struct SquashIndex;
165
166
#[ async_trait]
166
167
impl BackgroundJob for SquashIndex {
167
168
const JOB_NAME : & ' static str = "squash_index" ;
169
+ const QUEUE : & ' static str = "repository" ;
168
170
169
171
type Context = Arc < Environment > ;
170
172
@@ -223,6 +225,7 @@ impl NormalizeIndex {
223
225
#[ async_trait]
224
226
impl BackgroundJob for NormalizeIndex {
225
227
const JOB_NAME : & ' static str = "normalize_index" ;
228
+ const QUEUE : & ' static str = "repository" ;
226
229
227
230
type Context = Arc < Environment > ;
228
231
You can’t perform that action at this time.
0 commit comments