@ancon/wildcat-utils 1.50.27 → 1.50.28
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.
|
@@ -7,6 +7,12 @@ declare type HangfirePollerConfig = {
|
|
|
7
7
|
maxGroupsSize: number;
|
|
8
8
|
/** Max number of simultaneous workers per group */
|
|
9
9
|
maxWorkersSize: number;
|
|
10
|
+
/**
|
|
11
|
+
* Max number of parallel workers across all enabled groups.
|
|
12
|
+
* When set, `disableWorkers()` is a no-op unless the total enabled worker
|
|
13
|
+
* count exceeds this limit.
|
|
14
|
+
*/
|
|
15
|
+
maxParallelWorkers?: number;
|
|
10
16
|
/** Successful response interceptor */
|
|
11
17
|
responseInterceptor?: (response: any) => any;
|
|
12
18
|
/** Failed response interceptor */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var k=Object.defineProperty;var y=(s,e,r)=>e in s?k(s,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[e]=r;var o=(s,e,r)=>(y(s,typeof e!="symbol"?e+"":e,r),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("axios"),d=require("@ancon/wildcat-types"),h=require("../error/createCodedError.js"),q=require("../error/isNotFoundError.js"),m=require("../error/serializeError.js"),w=require("../error/isErrorWithStatusCode.js"),G=require("../api/isNoContentResponse.js"),W=require("../shared/wait.js");require("../error/isCodedError.js");require("../error/isAPIError.js");class E{constructor(e){o(this,"busyWorkers",new Set);o(this,"enabledGroups",new Set);o(this,"groups",new Map);o(this,"workerByIdMap",new Map);o(this,"timer",null);o(this,"config",{pollerInterval:5e3,maxGroupsSize:50,maxWorkersSize:20,responseInterceptor:void 0,responseRejectionInterceptor:void 0,getIsNetworkOnline(){return!0},async getRequestHeaders(){return{}},debug(...e){console.log(...e)}});o(this,"axiosInstance");this.config={...this.config,...e??null},this.axiosInstance=I.create(),(this.config.responseInterceptor||this.config.responseRejectionInterceptor)&&this.axiosInstance.interceptors.response.use(this.config.responseInterceptor,this.config.responseRejectionInterceptor)}stopTimer(){this.timer!=null&&(this.config.debug("*stop timer*"),clearInterval(this.timer),this.timer=null)}startTimer(){if(this.timer!=null)throw h(new Error("Timer already started"),d.ErrorCode.GenericUnexpectedHangfireError);this.config.debug("*start timer*"),this.timer=setInterval(()=>{this.config.debug("*tick*",{busyWorkers:this.busyWorkers.size,enabledGroups:this.enabledGroups.size,groups:this.groups}),this.enabledGroups.forEach(e=>{const r=this.groups.get(e);r&&r.forEach(i=>this.executeWorkerRequest(i))}),this.groups.forEach((e,r)=>{this.enabledGroups.has(r)||e.forEach(i=>{i.maxLifeTimeMillis!=null&&Date.now()-i.createdAt>i.maxLifeTimeMillis&&this.executeWorkerRequest(i)})}),this.groups.size<1&&this.stopTimer()},this.config.pollerInterval)}async waitForNetworkOnline(e=5){let r=0;for(;!this.config.getIsNetworkOnline()&&r<e+1;)r+=1,await W(1e3)}async executeWorkerRequest(e,r=!1){var c,g,f,p,x;const i=e.maxLifeTimeMillis!=null&&Date.now()-e.createdAt>e.maxLifeTimeMillis,n=!r&&!i&&this.busyWorkers.has(e.workerId);if(this.config.debug("*executeWorkerRequest*",{workerId:e.workerId,isBusy:n,force:r}),n){this.config.debug("*executeWorkerRequest* worker is busy",e.workerId);return}this.busyWorkers.add(e.workerId),await this.waitForNetworkOnline(),this.config.debug("*executeWorkerRequest* request",{isNetworkOnline:this.config.getIsNetworkOnline()});const u={...await this.config.getRequestHeaders(),...e.headers},a=2;let t=0;for(;t<=a;)try{const l=await this.axiosInstance({url:e.url,method:"get",timeout:this.config.pollerInterval,headers:u});if(!G(l))e.resolve(l),(c=e.onFinished)==null||c.call(e,r),this.deleteWorker(e.groupId,e.workerId);else if(i){this.config.debug("*executeWorkerRequest* worker lifetime exceeded, forcing exit",e.workerId);const b=m(h(new Error("The Hangfire worker lifetime has been exceeded"),d.ErrorCode.GenericUnexpectedHangfireError));e.reject(b),(g=e.onFinished)==null||g.call(e,!0),this.deleteWorker(e.groupId,e.workerId)}else this.busyWorkers.delete(e.workerId);break}catch(l){if(w(l)){if(q(l)){this.config.debug("*executeWorkerRequest* worker is expired or invalid",e.workerId);const b=m(h(new Error("The Hangfire worker is expired or invalid"),d.ErrorCode.HangfireWorkerExpiredOrInvalid));e.reject(b),(f=e.onFinished)==null||f.call(e,r)}else e.reject(l),(p=e.onFinished)==null||p.call(e,r);this.deleteWorker(e.groupId,e.workerId);break}else if(this.config.debug("*executeWorkerRequest* not an api error"),(x=this.config.logger)==null||x.warn(`Hangfire worker request error: ${JSON.stringify({attempt:t,groupId:e.groupId,workerId:e.workerId,error:m(l)})}`,{CorrelationId:u["x-correlation-id"]}),r&&t<a)t+=1,this.config.debug(`*executeWorkerRequest* retrying non-API error (attempt ${t})`),await W(500);else{this.busyWorkers.delete(e.workerId);break}}}deleteWorker(e,r){const i=this.groups.get(e);i&&(this.config.debug("*delete worker*",i.size,i),i.delete(r),this.workerByIdMap.delete(r),this.busyWorkers.delete(r),i.size<1&&(this.groups.delete(e),this.enabledGroups.delete(e),this.enabledGroups.size<1&&this.stopTimer()))}createWorker(e,{workerId:r,url:i,headers:n,onFinished:u,maxLifeTimeMillis:a}){if(!this.groups.has(e)){if(this.groups.size>=this.config.maxGroupsSize){const c=h(new Error("Max number of Hangfire groups exceeded"),d.ErrorCode.GenericUnexpectedHangfireError,{count:this.groups.size});throw this.destroy(),c}this.groups.set(e,new Map)}const t=this.groups.get(e);return new Promise((c,g)=>{if(t.has(r))throw h(new Error("Duplicate Hangfire worker ID"),d.ErrorCode.GenericUnexpectedHangfireError);if(t.size>=this.config.maxWorkersSize){const p=h(new Error("Max number of Hangfire workers in group exceeded"),d.ErrorCode.GenericUnexpectedHangfireError,{groupId:e,count:t.size});throw g(p),this.destroy(),p}const f={workerId:r,groupId:e,url:i,resolve:c,reject:g,headers:n,onFinished:u,createdAt:Date.now(),maxLifeTimeMillis:a};t.set(r,f),this.workerByIdMap.set(r,f),this.enabledGroups.has(e)||this.enabledGroups.add(e),this.timer==null&&this.enabledGroups.size>0&&this.startTimer()})}triggerWorker(e){this.config.debug("*triggerWorker*");const r=this.workerByIdMap.get(e);r?this.executeWorkerRequest(r,!0):this.config.debug("*triggerWorker* worker not found",e)}triggerAllWorkers(){this.config.debug("*triggerAllWorkers*");for(const e of this.workerByIdMap.values())this.executeWorkerRequest(e)}enableWorkers(e){this.config.debug("*enable*",e),this.enabledGroups.add(e),this.groups.has(e)&&this.timer==null&&this.startTimer()}disableWorkers(e){if(this.config.debug("*disable*",e),this.config.maxParallelWorkers!=null){const i=[...this.enabledGroups].reduce((n,u)=>{var a;return n+(((a=this.groups.get(u))==null?void 0:a.size)??0)},0);if(i<=this.config.maxParallelWorkers){this.config.debug("*disable* skipped, parallel workers within limit",{totalEnabledWorkers:i,maxParallelWorkers:this.config.maxParallelWorkers});return}}this.enabledGroups.delete(e);const r=this.groups.size>0&&[...this.workerByIdMap.values()].some(i=>i.maxLifeTimeMillis!=null);this.enabledGroups.size<1&&!r&&this.stopTimer()}destroy(){this.config.debug("*destroy*"),this.groups.clear(),this.stopTimer()}}function z(s){return new E(s)}exports.HangfirePoller=E;exports.default=z;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var E = (s, e,
|
|
3
|
-
var o = (s, e,
|
|
4
|
-
import
|
|
5
|
-
import { ErrorCode as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
var k = Object.defineProperty;
|
|
2
|
+
var E = (s, e, i) => e in s ? k(s, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[e] = i;
|
|
3
|
+
var o = (s, e, i) => (E(s, typeof e != "symbol" ? e + "" : e, i), i);
|
|
4
|
+
import I from "axios";
|
|
5
|
+
import { ErrorCode as c } from "@ancon/wildcat-types";
|
|
6
|
+
import d from "../error/createCodedError.mjs";
|
|
7
|
+
import y from "../error/isNotFoundError.mjs";
|
|
8
8
|
import b from "../error/serializeError.mjs";
|
|
9
9
|
import G from "../error/isErrorWithStatusCode.mjs";
|
|
10
10
|
import w from "../api/isNoContentResponse.mjs";
|
|
@@ -42,7 +42,7 @@ class z {
|
|
|
42
42
|
this.config = {
|
|
43
43
|
...this.config,
|
|
44
44
|
...e ?? null
|
|
45
|
-
}, this.axiosInstance =
|
|
45
|
+
}, this.axiosInstance = I.create(), (this.config.responseInterceptor || this.config.responseRejectionInterceptor) && this.axiosInstance.interceptors.response.use(
|
|
46
46
|
this.config.responseInterceptor,
|
|
47
47
|
this.config.responseRejectionInterceptor
|
|
48
48
|
);
|
|
@@ -52,9 +52,9 @@ class z {
|
|
|
52
52
|
}
|
|
53
53
|
startTimer() {
|
|
54
54
|
if (this.timer != null)
|
|
55
|
-
throw
|
|
55
|
+
throw d(
|
|
56
56
|
new Error("Timer already started"),
|
|
57
|
-
|
|
57
|
+
c.GenericUnexpectedHangfireError
|
|
58
58
|
);
|
|
59
59
|
this.config.debug("*start timer*"), this.timer = setInterval(() => {
|
|
60
60
|
this.config.debug("*tick*", {
|
|
@@ -62,28 +62,28 @@ class z {
|
|
|
62
62
|
enabledGroups: this.enabledGroups.size,
|
|
63
63
|
groups: this.groups
|
|
64
64
|
}), this.enabledGroups.forEach((e) => {
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
}), this.groups.forEach((e,
|
|
68
|
-
this.enabledGroups.has(
|
|
69
|
-
|
|
65
|
+
const i = this.groups.get(e);
|
|
66
|
+
i && i.forEach((r) => this.executeWorkerRequest(r));
|
|
67
|
+
}), this.groups.forEach((e, i) => {
|
|
68
|
+
this.enabledGroups.has(i) || e.forEach((r) => {
|
|
69
|
+
r.maxLifeTimeMillis != null && Date.now() - r.createdAt > r.maxLifeTimeMillis && this.executeWorkerRequest(r);
|
|
70
70
|
});
|
|
71
71
|
}), this.groups.size < 1 && this.stopTimer();
|
|
72
72
|
}, this.config.pollerInterval);
|
|
73
73
|
}
|
|
74
74
|
async waitForNetworkOnline(e = 5) {
|
|
75
|
-
let
|
|
76
|
-
for (; !this.config.getIsNetworkOnline() &&
|
|
77
|
-
|
|
75
|
+
let i = 0;
|
|
76
|
+
for (; !this.config.getIsNetworkOnline() && i < e + 1; )
|
|
77
|
+
i += 1, await W(1e3);
|
|
78
78
|
}
|
|
79
|
-
async executeWorkerRequest(e,
|
|
80
|
-
var
|
|
81
|
-
const
|
|
79
|
+
async executeWorkerRequest(e, i = !1) {
|
|
80
|
+
var u, g, f, p, x;
|
|
81
|
+
const r = e.maxLifeTimeMillis != null && Date.now() - e.createdAt > e.maxLifeTimeMillis, n = !i && !r && this.busyWorkers.has(e.workerId);
|
|
82
82
|
if (this.config.debug("*executeWorkerRequest*", {
|
|
83
83
|
workerId: e.workerId,
|
|
84
|
-
isBusy:
|
|
85
|
-
force:
|
|
86
|
-
}),
|
|
84
|
+
isBusy: n,
|
|
85
|
+
force: i
|
|
86
|
+
}), n) {
|
|
87
87
|
this.config.debug(
|
|
88
88
|
"*executeWorkerRequest* worker is busy",
|
|
89
89
|
e.workerId
|
|
@@ -93,67 +93,67 @@ class z {
|
|
|
93
93
|
this.busyWorkers.add(e.workerId), await this.waitForNetworkOnline(), this.config.debug("*executeWorkerRequest* request", {
|
|
94
94
|
isNetworkOnline: this.config.getIsNetworkOnline()
|
|
95
95
|
});
|
|
96
|
-
const
|
|
96
|
+
const h = {
|
|
97
97
|
...await this.config.getRequestHeaders(),
|
|
98
98
|
...e.headers
|
|
99
|
-
},
|
|
100
|
-
let
|
|
101
|
-
for (;
|
|
99
|
+
}, a = 2;
|
|
100
|
+
let t = 0;
|
|
101
|
+
for (; t <= a; )
|
|
102
102
|
try {
|
|
103
|
-
const
|
|
103
|
+
const l = await this.axiosInstance({
|
|
104
104
|
url: e.url,
|
|
105
105
|
method: "get",
|
|
106
106
|
timeout: this.config.pollerInterval,
|
|
107
|
-
headers:
|
|
107
|
+
headers: h
|
|
108
108
|
});
|
|
109
|
-
if (!w(
|
|
110
|
-
e.resolve(
|
|
111
|
-
else if (
|
|
109
|
+
if (!w(l))
|
|
110
|
+
e.resolve(l), (u = e.onFinished) == null || u.call(e, i), this.deleteWorker(e.groupId, e.workerId);
|
|
111
|
+
else if (r) {
|
|
112
112
|
this.config.debug(
|
|
113
113
|
"*executeWorkerRequest* worker lifetime exceeded, forcing exit",
|
|
114
114
|
e.workerId
|
|
115
115
|
);
|
|
116
116
|
const m = b(
|
|
117
|
-
|
|
117
|
+
d(
|
|
118
118
|
new Error("The Hangfire worker lifetime has been exceeded"),
|
|
119
|
-
|
|
119
|
+
c.GenericUnexpectedHangfireError
|
|
120
120
|
)
|
|
121
121
|
);
|
|
122
|
-
e.reject(m), (
|
|
122
|
+
e.reject(m), (g = e.onFinished) == null || g.call(e, !0), this.deleteWorker(e.groupId, e.workerId);
|
|
123
123
|
} else
|
|
124
124
|
this.busyWorkers.delete(e.workerId);
|
|
125
125
|
break;
|
|
126
|
-
} catch (
|
|
127
|
-
if (G(
|
|
128
|
-
if (
|
|
126
|
+
} catch (l) {
|
|
127
|
+
if (G(l)) {
|
|
128
|
+
if (y(l)) {
|
|
129
129
|
this.config.debug(
|
|
130
130
|
"*executeWorkerRequest* worker is expired or invalid",
|
|
131
131
|
e.workerId
|
|
132
132
|
);
|
|
133
133
|
const m = b(
|
|
134
|
-
|
|
134
|
+
d(
|
|
135
135
|
new Error("The Hangfire worker is expired or invalid"),
|
|
136
|
-
|
|
136
|
+
c.HangfireWorkerExpiredOrInvalid
|
|
137
137
|
)
|
|
138
138
|
);
|
|
139
|
-
e.reject(m), (
|
|
139
|
+
e.reject(m), (f = e.onFinished) == null || f.call(e, i);
|
|
140
140
|
} else
|
|
141
|
-
e.reject(
|
|
141
|
+
e.reject(l), (p = e.onFinished) == null || p.call(e, i);
|
|
142
142
|
this.deleteWorker(e.groupId, e.workerId);
|
|
143
143
|
break;
|
|
144
144
|
} else if (this.config.debug("*executeWorkerRequest* not an api error"), (x = this.config.logger) == null || x.warn(
|
|
145
145
|
`Hangfire worker request error: ${JSON.stringify({
|
|
146
|
-
attempt:
|
|
146
|
+
attempt: t,
|
|
147
147
|
groupId: e.groupId,
|
|
148
148
|
workerId: e.workerId,
|
|
149
|
-
error: b(
|
|
149
|
+
error: b(l)
|
|
150
150
|
})}`,
|
|
151
151
|
{
|
|
152
|
-
CorrelationId:
|
|
152
|
+
CorrelationId: h["x-correlation-id"]
|
|
153
153
|
}
|
|
154
|
-
),
|
|
155
|
-
|
|
156
|
-
`*executeWorkerRequest* retrying non-API error (attempt ${
|
|
154
|
+
), i && t < a)
|
|
155
|
+
t += 1, this.config.debug(
|
|
156
|
+
`*executeWorkerRequest* retrying non-API error (attempt ${t})`
|
|
157
157
|
), await W(500);
|
|
158
158
|
else {
|
|
159
159
|
this.busyWorkers.delete(e.workerId);
|
|
@@ -161,62 +161,62 @@ class z {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
deleteWorker(e,
|
|
165
|
-
const
|
|
166
|
-
|
|
164
|
+
deleteWorker(e, i) {
|
|
165
|
+
const r = this.groups.get(e);
|
|
166
|
+
r && (this.config.debug("*delete worker*", r.size, r), r.delete(i), this.workerByIdMap.delete(i), this.busyWorkers.delete(i), r.size < 1 && (this.groups.delete(e), this.enabledGroups.delete(e), this.enabledGroups.size < 1 && this.stopTimer()));
|
|
167
167
|
}
|
|
168
168
|
createWorker(e, {
|
|
169
|
-
workerId:
|
|
170
|
-
url:
|
|
171
|
-
headers:
|
|
172
|
-
onFinished:
|
|
173
|
-
maxLifeTimeMillis:
|
|
169
|
+
workerId: i,
|
|
170
|
+
url: r,
|
|
171
|
+
headers: n,
|
|
172
|
+
onFinished: h,
|
|
173
|
+
maxLifeTimeMillis: a
|
|
174
174
|
}) {
|
|
175
175
|
if (!this.groups.has(e)) {
|
|
176
176
|
if (this.groups.size >= this.config.maxGroupsSize) {
|
|
177
|
-
const
|
|
177
|
+
const u = d(
|
|
178
178
|
new Error("Max number of Hangfire groups exceeded"),
|
|
179
|
-
|
|
179
|
+
c.GenericUnexpectedHangfireError,
|
|
180
180
|
{ count: this.groups.size }
|
|
181
181
|
);
|
|
182
|
-
throw this.destroy(),
|
|
182
|
+
throw this.destroy(), u;
|
|
183
183
|
}
|
|
184
184
|
this.groups.set(e, /* @__PURE__ */ new Map());
|
|
185
185
|
}
|
|
186
|
-
const
|
|
187
|
-
return new Promise((
|
|
188
|
-
if (
|
|
189
|
-
throw
|
|
186
|
+
const t = this.groups.get(e);
|
|
187
|
+
return new Promise((u, g) => {
|
|
188
|
+
if (t.has(i))
|
|
189
|
+
throw d(
|
|
190
190
|
new Error("Duplicate Hangfire worker ID"),
|
|
191
|
-
|
|
191
|
+
c.GenericUnexpectedHangfireError
|
|
192
192
|
);
|
|
193
|
-
if (
|
|
194
|
-
const
|
|
193
|
+
if (t.size >= this.config.maxWorkersSize) {
|
|
194
|
+
const p = d(
|
|
195
195
|
new Error("Max number of Hangfire workers in group exceeded"),
|
|
196
|
-
|
|
197
|
-
{ groupId: e, count:
|
|
196
|
+
c.GenericUnexpectedHangfireError,
|
|
197
|
+
{ groupId: e, count: t.size }
|
|
198
198
|
);
|
|
199
|
-
throw
|
|
199
|
+
throw g(p), this.destroy(), p;
|
|
200
200
|
}
|
|
201
|
-
const
|
|
202
|
-
workerId:
|
|
201
|
+
const f = {
|
|
202
|
+
workerId: i,
|
|
203
203
|
groupId: e,
|
|
204
|
-
url:
|
|
205
|
-
resolve:
|
|
206
|
-
reject:
|
|
207
|
-
headers:
|
|
208
|
-
onFinished:
|
|
204
|
+
url: r,
|
|
205
|
+
resolve: u,
|
|
206
|
+
reject: g,
|
|
207
|
+
headers: n,
|
|
208
|
+
onFinished: h,
|
|
209
209
|
createdAt: Date.now(),
|
|
210
|
-
maxLifeTimeMillis:
|
|
210
|
+
maxLifeTimeMillis: a
|
|
211
211
|
};
|
|
212
|
-
|
|
212
|
+
t.set(i, f), this.workerByIdMap.set(i, f), this.enabledGroups.has(e) || this.enabledGroups.add(e), this.timer == null && this.enabledGroups.size > 0 && this.startTimer();
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
/** Trigger a worker to execute immediately, ignoring busy state */
|
|
216
216
|
triggerWorker(e) {
|
|
217
217
|
this.config.debug("*triggerWorker*");
|
|
218
|
-
const
|
|
219
|
-
|
|
218
|
+
const i = this.workerByIdMap.get(e);
|
|
219
|
+
i ? this.executeWorkerRequest(i, !0) : this.config.debug("*triggerWorker* worker not found", e);
|
|
220
220
|
}
|
|
221
221
|
/** Trigger all workers to execute immediately */
|
|
222
222
|
triggerAllWorkers() {
|
|
@@ -229,18 +229,34 @@ class z {
|
|
|
229
229
|
this.config.debug("*enable*", e), this.enabledGroups.add(e), this.groups.has(e) && this.timer == null && this.startTimer();
|
|
230
230
|
}
|
|
231
231
|
disableWorkers(e) {
|
|
232
|
-
this.config.debug("*disable*", e), this.
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
if (this.config.debug("*disable*", e), this.config.maxParallelWorkers != null) {
|
|
233
|
+
const r = [...this.enabledGroups].reduce(
|
|
234
|
+
(n, h) => {
|
|
235
|
+
var a;
|
|
236
|
+
return n + (((a = this.groups.get(h)) == null ? void 0 : a.size) ?? 0);
|
|
237
|
+
},
|
|
238
|
+
0
|
|
239
|
+
);
|
|
240
|
+
if (r <= this.config.maxParallelWorkers) {
|
|
241
|
+
this.config.debug("*disable* skipped, parallel workers within limit", {
|
|
242
|
+
totalEnabledWorkers: r,
|
|
243
|
+
maxParallelWorkers: this.config.maxParallelWorkers
|
|
244
|
+
});
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
this.enabledGroups.delete(e);
|
|
249
|
+
const i = this.groups.size > 0 && [...this.workerByIdMap.values()].some((r) => r.maxLifeTimeMillis != null);
|
|
250
|
+
this.enabledGroups.size < 1 && !i && this.stopTimer();
|
|
235
251
|
}
|
|
236
252
|
destroy() {
|
|
237
253
|
this.config.debug("*destroy*"), this.groups.clear(), this.stopTimer();
|
|
238
254
|
}
|
|
239
255
|
}
|
|
240
|
-
function
|
|
256
|
+
function A(s) {
|
|
241
257
|
return new z(s);
|
|
242
258
|
}
|
|
243
259
|
export {
|
|
244
260
|
z as HangfirePoller,
|
|
245
|
-
|
|
261
|
+
A as default
|
|
246
262
|
};
|