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 356d810 commit 9d6b2ceCopy full SHA for 9d6b2ce
apps/webapp/app/v3/services/worker/workerGroupService.server.ts
@@ -47,7 +47,13 @@ export class WorkerGroupService extends WithRunEngine {
47
},
48
});
49
50
- if (managedCount === 1) {
+ const getFlag = makeFlags(this._prisma);
51
+ const defaultWorkerInstanceGroupId = await getFlag({
52
+ key: "defaultWorkerInstanceGroupId",
53
+ });
54
+
55
+ // If there's no global default yet we should set it to the new worker group
56
+ if (!defaultWorkerInstanceGroupId) {
57
const setFlag = makeSetFlags(this._prisma);
58
await setFlag({
59
key: "defaultWorkerInstanceGroupId",
0 commit comments