Projektstart

This commit is contained in:
2026-01-22 15:49:12 +01:00
parent 7212eb6f7a
commit 57e5f652f8
10637 changed files with 2598792 additions and 64 deletions

View File

@@ -0,0 +1,8 @@
export declare enum ChildCommand {
Init = 0,
Start = 1,
Stop = 2,
GetChildrenValuesResponse = 3,
GetIgnoredChildrenFailuresResponse = 4,
MoveToWaitingChildrenResponse = 5
}

View File

@@ -0,0 +1,10 @@
export var ChildCommand;
(function (ChildCommand) {
ChildCommand[ChildCommand["Init"] = 0] = "Init";
ChildCommand[ChildCommand["Start"] = 1] = "Start";
ChildCommand[ChildCommand["Stop"] = 2] = "Stop";
ChildCommand[ChildCommand["GetChildrenValuesResponse"] = 3] = "GetChildrenValuesResponse";
ChildCommand[ChildCommand["GetIgnoredChildrenFailuresResponse"] = 4] = "GetIgnoredChildrenFailuresResponse";
ChildCommand[ChildCommand["MoveToWaitingChildrenResponse"] = 5] = "MoveToWaitingChildrenResponse";
})(ChildCommand || (ChildCommand = {}));
//# sourceMappingURL=child-command.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"child-command.js","sourceRoot":"","sources":["../../../src/enums/child-command.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YAOX;AAPD,WAAY,YAAY;IACtB,+CAAI,CAAA;IACJ,iDAAK,CAAA;IACL,+CAAI,CAAA;IACJ,yFAAyB,CAAA;IACzB,2GAAkC,CAAA;IAClC,iGAA6B,CAAA;AAC/B,CAAC,EAPW,YAAY,KAAZ,YAAY,QAOvB"}

View File

@@ -0,0 +1,13 @@
export declare enum ErrorCode {
JobNotExist = -1,
JobLockNotExist = -2,
JobNotInState = -3,
JobPendingChildren = -4,
ParentJobNotExist = -5,
JobLockMismatch = -6,
ParentJobCannotBeReplaced = -7,
JobBelongsToJobScheduler = -8,
JobHasFailedChildren = -9,
SchedulerJobIdCollision = -10,
SchedulerJobSlotsBusy = -11
}

View File

@@ -0,0 +1,15 @@
export var ErrorCode;
(function (ErrorCode) {
ErrorCode[ErrorCode["JobNotExist"] = -1] = "JobNotExist";
ErrorCode[ErrorCode["JobLockNotExist"] = -2] = "JobLockNotExist";
ErrorCode[ErrorCode["JobNotInState"] = -3] = "JobNotInState";
ErrorCode[ErrorCode["JobPendingChildren"] = -4] = "JobPendingChildren";
ErrorCode[ErrorCode["ParentJobNotExist"] = -5] = "ParentJobNotExist";
ErrorCode[ErrorCode["JobLockMismatch"] = -6] = "JobLockMismatch";
ErrorCode[ErrorCode["ParentJobCannotBeReplaced"] = -7] = "ParentJobCannotBeReplaced";
ErrorCode[ErrorCode["JobBelongsToJobScheduler"] = -8] = "JobBelongsToJobScheduler";
ErrorCode[ErrorCode["JobHasFailedChildren"] = -9] = "JobHasFailedChildren";
ErrorCode[ErrorCode["SchedulerJobIdCollision"] = -10] = "SchedulerJobIdCollision";
ErrorCode[ErrorCode["SchedulerJobSlotsBusy"] = -11] = "SchedulerJobSlotsBusy";
})(ErrorCode || (ErrorCode = {}));
//# sourceMappingURL=error-code.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"error-code.js","sourceRoot":"","sources":["../../../src/enums/error-code.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,SAYX;AAZD,WAAY,SAAS;IACnB,wDAAgB,CAAA;IAChB,gEAAoB,CAAA;IACpB,4DAAkB,CAAA;IAClB,sEAAuB,CAAA;IACvB,oEAAsB,CAAA;IACtB,gEAAoB,CAAA;IACpB,oFAA8B,CAAA;IAC9B,kFAA6B,CAAA;IAC7B,0EAAyB,CAAA;IACzB,iFAA6B,CAAA;IAC7B,6EAA2B,CAAA;AAC7B,CAAC,EAZW,SAAS,KAAT,SAAS,QAYpB"}

View File

@@ -0,0 +1,5 @@
export * from './child-command';
export * from './error-code';
export * from './parent-command';
export * from './metrics-time';
export * from './telemetry-attributes';

6
backend/node_modules/bullmq/dist/esm/enums/index.js generated vendored Normal file
View File

@@ -0,0 +1,6 @@
export * from './child-command';
export * from './error-code';
export * from './parent-command';
export * from './metrics-time';
export * from './telemetry-attributes';
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC"}

View File

@@ -0,0 +1,10 @@
export declare enum MetricsTime {
ONE_MINUTE = 1,
FIVE_MINUTES = 5,
FIFTEEN_MINUTES = 15,
THIRTY_MINUTES = 30,
ONE_HOUR = 60,
ONE_WEEK = 10080,
TWO_WEEKS = 20160,
ONE_MONTH = 80640
}

View File

@@ -0,0 +1,12 @@
export var MetricsTime;
(function (MetricsTime) {
MetricsTime[MetricsTime["ONE_MINUTE"] = 1] = "ONE_MINUTE";
MetricsTime[MetricsTime["FIVE_MINUTES"] = 5] = "FIVE_MINUTES";
MetricsTime[MetricsTime["FIFTEEN_MINUTES"] = 15] = "FIFTEEN_MINUTES";
MetricsTime[MetricsTime["THIRTY_MINUTES"] = 30] = "THIRTY_MINUTES";
MetricsTime[MetricsTime["ONE_HOUR"] = 60] = "ONE_HOUR";
MetricsTime[MetricsTime["ONE_WEEK"] = 10080] = "ONE_WEEK";
MetricsTime[MetricsTime["TWO_WEEKS"] = 20160] = "TWO_WEEKS";
MetricsTime[MetricsTime["ONE_MONTH"] = 80640] = "ONE_MONTH";
})(MetricsTime || (MetricsTime = {}));
//# sourceMappingURL=metrics-time.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"metrics-time.js","sourceRoot":"","sources":["../../../src/enums/metrics-time.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,WASX;AATD,WAAY,WAAW;IACrB,yDAAc,CAAA;IACd,6DAAgB,CAAA;IAChB,oEAAoB,CAAA;IACpB,kEAAmB,CAAA;IACnB,sDAAa,CAAA;IACb,yDAAsB,CAAA;IACtB,2DAA2B,CAAA;IAC3B,2DAA+B,CAAA;AACjC,CAAC,EATW,WAAW,KAAX,WAAW,QAStB"}

View File

@@ -0,0 +1,15 @@
export declare enum ParentCommand {
Completed = 0,
Error = 1,
Failed = 2,
InitFailed = 3,
InitCompleted = 4,
Log = 5,
MoveToDelayed = 6,
MoveToWait = 7,
Progress = 8,
Update = 9,
GetChildrenValues = 10,
GetIgnoredChildrenFailures = 11,
MoveToWaitingChildren = 12
}

View File

@@ -0,0 +1,17 @@
export var ParentCommand;
(function (ParentCommand) {
ParentCommand[ParentCommand["Completed"] = 0] = "Completed";
ParentCommand[ParentCommand["Error"] = 1] = "Error";
ParentCommand[ParentCommand["Failed"] = 2] = "Failed";
ParentCommand[ParentCommand["InitFailed"] = 3] = "InitFailed";
ParentCommand[ParentCommand["InitCompleted"] = 4] = "InitCompleted";
ParentCommand[ParentCommand["Log"] = 5] = "Log";
ParentCommand[ParentCommand["MoveToDelayed"] = 6] = "MoveToDelayed";
ParentCommand[ParentCommand["MoveToWait"] = 7] = "MoveToWait";
ParentCommand[ParentCommand["Progress"] = 8] = "Progress";
ParentCommand[ParentCommand["Update"] = 9] = "Update";
ParentCommand[ParentCommand["GetChildrenValues"] = 10] = "GetChildrenValues";
ParentCommand[ParentCommand["GetIgnoredChildrenFailures"] = 11] = "GetIgnoredChildrenFailures";
ParentCommand[ParentCommand["MoveToWaitingChildren"] = 12] = "MoveToWaitingChildren";
})(ParentCommand || (ParentCommand = {}));
//# sourceMappingURL=parent-command.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"parent-command.js","sourceRoot":"","sources":["../../../src/enums/parent-command.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,aAcX;AAdD,WAAY,aAAa;IACvB,2DAAS,CAAA;IACT,mDAAK,CAAA;IACL,qDAAM,CAAA;IACN,6DAAU,CAAA;IACV,mEAAa,CAAA;IACb,+CAAG,CAAA;IACH,mEAAa,CAAA;IACb,6DAAU,CAAA;IACV,yDAAQ,CAAA;IACR,qDAAM,CAAA;IACN,4EAAiB,CAAA;IACjB,8FAA0B,CAAA;IAC1B,oFAAqB,CAAA;AACvB,CAAC,EAdW,aAAa,KAAb,aAAa,QAcxB"}

View File

@@ -0,0 +1,43 @@
export declare enum TelemetryAttributes {
QueueName = "bullmq.queue.name",
QueueOperation = "bullmq.queue.operation",
BulkCount = "bullmq.job.bulk.count",
BulkNames = "bullmq.job.bulk.names",
JobName = "bullmq.job.name",
JobId = "bullmq.job.id",
JobKey = "bullmq.job.key",
JobIds = "bullmq.job.ids",
JobAttemptsMade = "bullmq.job.attempts.made",
DeduplicationKey = "bullmq.job.deduplication.key",
JobOptions = "bullmq.job.options",
JobProgress = "bullmq.job.progress",
QueueDrainDelay = "bullmq.queue.drain.delay",
QueueGrace = "bullmq.queue.grace",
QueueCleanLimit = "bullmq.queue.clean.limit",
QueueRateLimit = "bullmq.queue.rate.limit",
JobType = "bullmq.job.type",
QueueOptions = "bullmq.queue.options",
QueueEventMaxLength = "bullmq.queue.event.max.length",
WorkerOptions = "bullmq.worker.options",
WorkerName = "bullmq.worker.name",
WorkerId = "bullmq.worker.id",
WorkerRateLimit = "bullmq.worker.rate.limit",
WorkerDoNotWaitActive = "bullmq.worker.do.not.wait.active",
WorkerForceClose = "bullmq.worker.force.close",
WorkerStalledJobs = "bullmq.worker.stalled.jobs",
WorkerFailedJobs = "bullmq.worker.failed.jobs",
WorkerJobsToExtendLocks = "bullmq.worker.jobs.to.extend.locks",
JobFinishedTimestamp = "bullmq.job.finished.timestamp",
JobProcessedTimestamp = "bullmq.job.processed.timestamp",
JobResult = "bullmq.job.result",
JobFailedReason = "bullmq.job.failed.reason",
FlowName = "bullmq.flow.name",
JobSchedulerId = "bullmq.job.scheduler.id"
}
export declare enum SpanKind {
INTERNAL = 0,
SERVER = 1,
CLIENT = 2,
PRODUCER = 3,
CONSUMER = 4
}

View File

@@ -0,0 +1,46 @@
export var TelemetryAttributes;
(function (TelemetryAttributes) {
TelemetryAttributes["QueueName"] = "bullmq.queue.name";
TelemetryAttributes["QueueOperation"] = "bullmq.queue.operation";
TelemetryAttributes["BulkCount"] = "bullmq.job.bulk.count";
TelemetryAttributes["BulkNames"] = "bullmq.job.bulk.names";
TelemetryAttributes["JobName"] = "bullmq.job.name";
TelemetryAttributes["JobId"] = "bullmq.job.id";
TelemetryAttributes["JobKey"] = "bullmq.job.key";
TelemetryAttributes["JobIds"] = "bullmq.job.ids";
TelemetryAttributes["JobAttemptsMade"] = "bullmq.job.attempts.made";
TelemetryAttributes["DeduplicationKey"] = "bullmq.job.deduplication.key";
TelemetryAttributes["JobOptions"] = "bullmq.job.options";
TelemetryAttributes["JobProgress"] = "bullmq.job.progress";
TelemetryAttributes["QueueDrainDelay"] = "bullmq.queue.drain.delay";
TelemetryAttributes["QueueGrace"] = "bullmq.queue.grace";
TelemetryAttributes["QueueCleanLimit"] = "bullmq.queue.clean.limit";
TelemetryAttributes["QueueRateLimit"] = "bullmq.queue.rate.limit";
TelemetryAttributes["JobType"] = "bullmq.job.type";
TelemetryAttributes["QueueOptions"] = "bullmq.queue.options";
TelemetryAttributes["QueueEventMaxLength"] = "bullmq.queue.event.max.length";
TelemetryAttributes["WorkerOptions"] = "bullmq.worker.options";
TelemetryAttributes["WorkerName"] = "bullmq.worker.name";
TelemetryAttributes["WorkerId"] = "bullmq.worker.id";
TelemetryAttributes["WorkerRateLimit"] = "bullmq.worker.rate.limit";
TelemetryAttributes["WorkerDoNotWaitActive"] = "bullmq.worker.do.not.wait.active";
TelemetryAttributes["WorkerForceClose"] = "bullmq.worker.force.close";
TelemetryAttributes["WorkerStalledJobs"] = "bullmq.worker.stalled.jobs";
TelemetryAttributes["WorkerFailedJobs"] = "bullmq.worker.failed.jobs";
TelemetryAttributes["WorkerJobsToExtendLocks"] = "bullmq.worker.jobs.to.extend.locks";
TelemetryAttributes["JobFinishedTimestamp"] = "bullmq.job.finished.timestamp";
TelemetryAttributes["JobProcessedTimestamp"] = "bullmq.job.processed.timestamp";
TelemetryAttributes["JobResult"] = "bullmq.job.result";
TelemetryAttributes["JobFailedReason"] = "bullmq.job.failed.reason";
TelemetryAttributes["FlowName"] = "bullmq.flow.name";
TelemetryAttributes["JobSchedulerId"] = "bullmq.job.scheduler.id";
})(TelemetryAttributes || (TelemetryAttributes = {}));
export var SpanKind;
(function (SpanKind) {
SpanKind[SpanKind["INTERNAL"] = 0] = "INTERNAL";
SpanKind[SpanKind["SERVER"] = 1] = "SERVER";
SpanKind[SpanKind["CLIENT"] = 2] = "CLIENT";
SpanKind[SpanKind["PRODUCER"] = 3] = "PRODUCER";
SpanKind[SpanKind["CONSUMER"] = 4] = "CONSUMER";
})(SpanKind || (SpanKind = {}));
//# sourceMappingURL=telemetry-attributes.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"telemetry-attributes.js","sourceRoot":"","sources":["../../../src/enums/telemetry-attributes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,mBAmCX;AAnCD,WAAY,mBAAmB;IAC7B,sDAA+B,CAAA;IAC/B,gEAAyC,CAAA;IACzC,0DAAmC,CAAA;IACnC,0DAAmC,CAAA;IACnC,kDAA2B,CAAA;IAC3B,8CAAuB,CAAA;IACvB,gDAAyB,CAAA;IACzB,gDAAyB,CAAA;IACzB,mEAA4C,CAAA;IAC5C,wEAAiD,CAAA;IACjD,wDAAiC,CAAA;IACjC,0DAAmC,CAAA;IACnC,mEAA4C,CAAA;IAC5C,wDAAiC,CAAA;IACjC,mEAA4C,CAAA;IAC5C,iEAA0C,CAAA;IAC1C,kDAA2B,CAAA;IAC3B,4DAAqC,CAAA;IACrC,4EAAqD,CAAA;IACrD,8DAAuC,CAAA;IACvC,wDAAiC,CAAA;IACjC,oDAA6B,CAAA;IAC7B,mEAA4C,CAAA;IAC5C,iFAA0D,CAAA;IAC1D,qEAA8C,CAAA;IAC9C,uEAAgD,CAAA;IAChD,qEAA8C,CAAA;IAC9C,qFAA8D,CAAA;IAC9D,6EAAsD,CAAA;IACtD,+EAAwD,CAAA;IACxD,sDAA+B,CAAA;IAC/B,mEAA4C,CAAA;IAC5C,oDAA6B,CAAA;IAC7B,iEAA0C,CAAA;AAC5C,CAAC,EAnCW,mBAAmB,KAAnB,mBAAmB,QAmC9B;AAED,MAAM,CAAN,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,+CAAY,CAAA;IACZ,2CAAU,CAAA;IACV,2CAAU,CAAA;IACV,+CAAY,CAAA;IACZ,+CAAY,CAAA;AACd,CAAC,EANW,QAAQ,KAAR,QAAQ,QAMnB"}