summaryrefslogtreecommitdiff
path: root/src/queue/processors/system/index.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-10-22 05:36:48 +0900
committerGitHub <noreply@github.com>2021-10-22 05:36:48 +0900
commit4e4c559db6964cbf17fcadf38d55fc79c995ca42 (patch)
tree0e136ef1bf75c201b5805e667129082db3abcb61 /src/queue/processors/system/index.ts
parentリモートノートで意図せずローカルカスタム絵文字が使... (diff)
downloadsharkey-4e4c559db6964cbf17fcadf38d55fc79c995ca42.tar.gz
sharkey-4e4c559db6964cbf17fcadf38d55fc79c995ca42.tar.bz2
sharkey-4e4c559db6964cbf17fcadf38d55fc79c995ca42.zip
Migrate to Chart.js v3 (#7896)
* wip * wip * wip * wip * wip * wip * wip * 定期的にresync * Update overview.vue * wip * wip
Diffstat (limited to 'src/queue/processors/system/index.ts')
-rw-r--r--src/queue/processors/system/index.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/queue/processors/system/index.ts b/src/queue/processors/system/index.ts
new file mode 100644
index 0000000000..52b7868105
--- /dev/null
+++ b/src/queue/processors/system/index.ts
@@ -0,0 +1,12 @@
+import * as Bull from 'bull';
+import { resyncCharts } from './resync-charts';
+
+const jobs = {
+ resyncCharts,
+} as Record<string, Bull.ProcessCallbackFunction<{}> | Bull.ProcessPromiseFunction<{}>>;
+
+export default function(dbQueue: Bull.Queue<{}>) {
+ for (const [k, v] of Object.entries(jobs)) {
+ dbQueue.process(k, v);
+ }
+}