bullmq 5.80.2 → 5.80.3

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.
@@ -82,7 +82,7 @@ local maxEvents = getOrSetMaxEvents(metaKey)
82
82
  local parentDependenciesKey = args[6]
83
83
  local timestamp = args[4]
84
84
  if args[2] == "" then
85
- jobId = jobCounter
85
+ jobId = jobCounter .. "" -- convert to string
86
86
  jobIdKey = args[1] .. jobId
87
87
  else
88
88
  jobId = args[2]
@@ -120,4 +120,4 @@ if parentDependenciesKey ~= nil then
120
120
  rcall("SADD", parentDependenciesKey, jobIdKey)
121
121
  end
122
122
 
123
- return jobId .. "" -- convert to string
123
+ return jobId
@@ -543,7 +543,7 @@ local opts = cmsgpack.unpack(ARGV[3])
543
543
  local parentDependenciesKey = args[6]
544
544
  local timestamp = args[4]
545
545
  if args[2] == "" then
546
- jobId = jobCounter
546
+ jobId = jobCounter .. "" -- convert to string
547
547
  jobIdKey = args[1] .. jobId
548
548
  else
549
549
  jobId = args[2]
@@ -567,7 +567,7 @@ addDelayedJob(jobId, delayedKey, eventsKey, timestamp, maxEvents, KEYS[1], delay
567
567
  if parentDependenciesKey ~= nil then
568
568
  rcall("SADD", parentDependenciesKey, jobIdKey)
569
569
  end
570
- return jobId .. "" -- convert to string
570
+ return jobId
571
571
  `;
572
572
  export const addDelayedJob = {
573
573
  name: 'addDelayedJob',
@@ -433,7 +433,7 @@ local maxEvents = getOrSetMaxEvents(metaKey)
433
433
  local parentDependenciesKey = args[6]
434
434
  local timestamp = args[4]
435
435
  if args[2] == "" then
436
- jobId = jobCounter
436
+ jobId = jobCounter .. "" -- convert to string
437
437
  jobIdKey = args[1] .. jobId
438
438
  else
439
439
  jobId = args[2]
@@ -464,7 +464,7 @@ rcall("XADD", eventsKey, "MAXLEN", "~", maxEvents, "*", "event",
464
464
  if parentDependenciesKey ~= nil then
465
465
  rcall("SADD", parentDependenciesKey, jobIdKey)
466
466
  end
467
- return jobId .. "" -- convert to string
467
+ return jobId
468
468
  `;
469
469
  export const addParentJob = {
470
470
  name: 'addParentJob',
@@ -506,7 +506,7 @@ local maxEvents = getOrSetMaxEvents(metaKey)
506
506
  local parentDependenciesKey = args[6]
507
507
  local timestamp = args[4]
508
508
  if args[2] == "" then
509
- jobId = jobCounter
509
+ jobId = jobCounter .. "" -- convert to string
510
510
  jobIdKey = args[1] .. jobId
511
511
  else
512
512
  jobId = args[2]
@@ -537,7 +537,7 @@ rcall("XADD", eventsKey, "MAXLEN", "~", maxEvents, "*", "event", "waiting",
537
537
  if parentDependenciesKey ~= nil then
538
538
  rcall("SADD", parentDependenciesKey, jobIdKey)
539
539
  end
540
- return jobId .. "" -- convert to string
540
+ return jobId
541
541
  `;
542
542
  export const addPrioritizedJob = {
543
543
  name: 'addPrioritizedJob',
@@ -510,7 +510,7 @@ local maxEvents = getOrSetMaxEvents(metaKey)
510
510
  local parentDependenciesKey = args[6]
511
511
  local timestamp = args[4]
512
512
  if args[2] == "" then
513
- jobId = jobCounter
513
+ jobId = jobCounter .. "" -- convert to string
514
514
  jobIdKey = args[1] .. jobId
515
515
  else
516
516
  jobId = args[2]
@@ -541,7 +541,7 @@ rcall("XADD", eventsKey, "MAXLEN", "~", maxEvents, "*", "event", "waiting",
541
541
  if parentDependenciesKey ~= nil then
542
542
  rcall("SADD", parentDependenciesKey, jobIdKey)
543
543
  end
544
- return jobId .. "" -- convert to string
544
+ return jobId
545
545
  `;
546
546
  export const addStandardJob = {
547
547
  name: 'addStandardJob',