We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb81d6c commit f24b5b7Copy full SHA for f24b5b7
apps/webapp/app/v3/marqs/devQueueConsumer.server.ts
@@ -90,6 +90,10 @@ export class DevQueueConsumer {
90
return;
91
}
92
93
+ if (this._backgroundWorkers.has(backgroundWorker.id)) {
94
+ return;
95
+ }
96
+
97
this._backgroundWorkers.set(backgroundWorker.id, backgroundWorker);
98
99
logger.debug("Registered background worker", { backgroundWorker: backgroundWorker.id });
@@ -271,10 +275,10 @@ export class DevQueueConsumer {
271
275
272
276
273
277
278
+ this._enabled = true;
274
279
// Create the session
280
await createNewSession(this.env, this._options.ipAddress ?? "unknown");
281
- this._enabled = true;
282
this._perTraceCountdown = this._options.maximumItemsPerTrace;
283
this._lastNewTrace = new Date();
284
this._taskFailures = 0;
0 commit comments