Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dima Krasner
Sharkey
Commits
06535a37
Commit
06535a37
authored
6 years ago
by
syuilo
Browse files
Options
Downloads
Patches
Plain Diff
キューのメモリ使用量を削減
parent
3f6c6c5b
No related branches found
Branches containing commit
Tags
12.38.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/queue/index.ts
+4
-3
4 additions, 3 deletions
src/queue/index.ts
with
4 additions
and
3 deletions
src/queue/index.ts
+
4
−
3
View file @
06535a37
...
...
@@ -14,7 +14,7 @@ const queue = createQueue({
export
function
createHttp
(
data
)
{
return
queue
.
create
(
'
http
'
,
data
)
.
attempts
(
16
)
.
attempts
(
8
)
.
backoff
({
delay
:
16384
,
type
:
'
exponential
'
});
}
...
...
@@ -24,7 +24,7 @@ export function deliver(user, content, to) {
user
,
content
,
to
}).
save
();
}).
removeOnComplete
(
true
).
save
();
}
export
default
function
()
{
...
...
@@ -36,5 +36,6 @@ export default function() {
Network.http.max-connections - MozillaZine Knowledge Base
http://kb.mozillazine.org/Network.http.max-connections
*/
queue
.
process
(
'
http
'
,
256
,
http
);
//queue.process('http', 256, http);
queue
.
process
(
'
http
'
,
128
,
http
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment