summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-07-27 18:40:38 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-07-27 18:40:38 +0900
commit8a57f490ceccb6e1e4099cc945fe80fd03906d52 (patch)
treede8dc9285425be9a35799633d1bf93ab97e89446 /src
parentMerge branch 'master' of https://github.com/syuilo/misskey (diff)
downloadsharkey-8a57f490ceccb6e1e4099cc945fe80fd03906d52.tar.gz
sharkey-8a57f490ceccb6e1e4099cc945fe80fd03906d52.tar.bz2
sharkey-8a57f490ceccb6e1e4099cc945fe80fd03906d52.zip
バギーなのでジョブキュー無効化
Diffstat (limited to 'src')
-rw-r--r--src/index.ts3
-rw-r--r--src/queue/index.ts26
2 files changed, 1 insertions, 28 deletions
diff --git a/src/index.ts b/src/index.ts
index 7545c82c74..9c16c4d223 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -79,9 +79,6 @@ async function workerMain() {
// start server
await require('./server').default();
- // start processor
- require('./queue').default();
-
// Send a 'ready' message to parent process
process.send('ready');
}
diff --git a/src/queue/index.ts b/src/queue/index.ts
index 775e5f199d..e404f6fc9c 100644
--- a/src/queue/index.ts
+++ b/src/queue/index.ts
@@ -1,28 +1,8 @@
-import * as Queue from 'bee-queue';
-
-import config from '../config';
import http from './processors/http';
import { ILocalUser } from '../models/user';
-const queue = new Queue('misskey', {
- redis: {
- port: config.redis.port,
- host: config.redis.host,
- password: config.redis.pass
- },
-
- removeOnSuccess: true,
- removeOnFailure: true,
- getEvents: false,
- sendEvents: false,
- storeJobs: false
-});
-
export function createHttpJob(data: any) {
- return queue.createJob(data)
- //.retries(4)
- //.backoff('exponential', 16384) // 16s
- .save();
+ return http(data, () => {});
}
export function deliver(user: ILocalUser, content: any, to: any) {
@@ -33,7 +13,3 @@ export function deliver(user: ILocalUser, content: any, to: any) {
to
});
}
-
-export default function() {
- queue.process(128, http);
-}