ts-sidekiq 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/client.d.ts +1 -1
- package/build/client.js +1 -1
- package/build/client.js.map +1 -1
- package/build/components/crons-table.d.ts +1 -1
- package/build/components/processes-table.d.ts +1 -1
- package/build/components/processes-table.js.map +1 -1
- package/build/components/queue-jobs-table.d.ts +1 -1
- package/build/components/queues-table.d.ts +1 -1
- package/build/components/retry-jobs-table.d.ts +1 -1
- package/build/components/statistics-table.d.ts +1 -1
- package/build/redis-client.d.ts +1 -1
- package/build/server.d.ts +1 -0
- package/build/server.js +1 -0
- package/build/server.js.map +1 -1
- package/build/sidekiq-dashboard.d.ts +1 -1
- package/build/sidekiq-queue.d.ts +1 -1
- package/build/sidekiq-retry.d.ts +1 -1
- package/package.json +1 -1
- package/types/sidekiq.d.ts +91 -0
package/README.md
CHANGED
package/build/client.d.ts
CHANGED
package/build/client.js
CHANGED
package/build/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processes-table.js","sourceRoot":"","sources":["../../src/components/processes-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"processes-table.js","sourceRoot":"","sources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AAK,EAAE,EAAE,CAAC,CACjD,4BAAI,GAAG,EAAE,KAAK;YACZ,4BAAI,KAAK,EAAE,SAAS,IAAG,KAAK,CAAM;YAClC,4BAAI,KAAK,EAAE,SAAS,IAAG,YAAY,CAAM;YACzC,4BAAI,KAAK,EAAE,SAAS,IAAG,WAAW,CAAM,CACrC,CACN,CACF,CACK,CACF,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/build/redis-client.d.ts
CHANGED
package/build/server.d.ts
CHANGED
package/build/server.js
CHANGED
package/build/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
|
package/build/sidekiq-queue.d.ts
CHANGED
package/build/sidekiq-retry.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export type SidekiqQueue = {
|
|
2
|
+
queue: string;
|
|
3
|
+
size: number;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
export type SidekiqStat = {
|
|
7
|
+
stat: string;
|
|
8
|
+
value: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export type SidekiqProcessInfoDetail = {
|
|
12
|
+
hostname: string;
|
|
13
|
+
started_at: number;
|
|
14
|
+
pid: number;
|
|
15
|
+
tag: string;
|
|
16
|
+
concurrency: number;
|
|
17
|
+
queues: string[];
|
|
18
|
+
weights: { [key: string]: number }[];
|
|
19
|
+
labels: string[];
|
|
20
|
+
identity: string;
|
|
21
|
+
version: string;
|
|
22
|
+
embedded: boolean;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export type SidekiqProcessInfo = {
|
|
26
|
+
rss: string;
|
|
27
|
+
quiet: string;
|
|
28
|
+
info: string;
|
|
29
|
+
busy: string;
|
|
30
|
+
beat: string;
|
|
31
|
+
rtt_us: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type SidekiqProcess = {
|
|
35
|
+
processKey: string;
|
|
36
|
+
processInfo: SidekiqProcessInfo;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export type SidekiqJob = {
|
|
40
|
+
class: string;
|
|
41
|
+
args: any[];
|
|
42
|
+
retry: boolean;
|
|
43
|
+
queue: string;
|
|
44
|
+
jid: string;
|
|
45
|
+
created_at: number; // Unixタイムスタンプ
|
|
46
|
+
enqueued_at: number; // Unixタイムスタンプ
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export type SidekiqRetryJob = {
|
|
50
|
+
retry: boolean;
|
|
51
|
+
queue: string;
|
|
52
|
+
args: any[]; // Replace 'any' with a more specific type if you know the structure of your arguments
|
|
53
|
+
class: string;
|
|
54
|
+
jid: string;
|
|
55
|
+
created_at: number;
|
|
56
|
+
enqueued_at: number;
|
|
57
|
+
error_message: string;
|
|
58
|
+
error_class: string;
|
|
59
|
+
failed_at: number;
|
|
60
|
+
retry_count: number;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export type SidekiqCronJobDetail = {
|
|
64
|
+
cron: string;
|
|
65
|
+
active_job: string;
|
|
66
|
+
symbolize_args: string;
|
|
67
|
+
last_enqueue_time: string;
|
|
68
|
+
queue_name_delimiter: string;
|
|
69
|
+
name: string;
|
|
70
|
+
args: string;
|
|
71
|
+
description: string;
|
|
72
|
+
status: string;
|
|
73
|
+
klass: string;
|
|
74
|
+
source: string;
|
|
75
|
+
queue_name_prefix: string;
|
|
76
|
+
message: string;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export type SidekiqCronJob = {
|
|
80
|
+
key: string;
|
|
81
|
+
type: "hash" | "list" | "zset"; // Include other types if they exist
|
|
82
|
+
details?: SidekiqCronJobDetail; // For hash type
|
|
83
|
+
value?: string[]; // For list or zset type
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export type SidekiqDashboardData = {
|
|
87
|
+
queues: SidekiqQueue[];
|
|
88
|
+
stats: SidekiqStat[];
|
|
89
|
+
processes: SidekiqProcess[];
|
|
90
|
+
cronJobs: SidekiqCronJob[];
|
|
91
|
+
};
|