screwdriver-queue-service 6.0.0 → 6.0.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-queue-service",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "Screwdriver Queue Service API",
5
5
  "main": "app.js",
6
6
  "directories": {
@@ -493,7 +493,7 @@ async function start(executor, config) {
493
493
  {
494
494
  buildId,
495
495
  jobId,
496
- blockedBy: blockedBy.toString(),
496
+ blockedBy,
497
497
  blockedBySameJob,
498
498
  blockedBySameJobWaitTime
499
499
  }
@@ -758,13 +758,7 @@ async function stopTimer(executor, config) {
758
758
  async function stop(executor, config) {
759
759
  await executor.connect();
760
760
 
761
- const { buildId, jobId } = config; // in case config contains something else
762
-
763
- let blockedBy;
764
-
765
- if (config.blockedBy !== undefined) {
766
- blockedBy = config.blockedBy.toString();
767
- }
761
+ const { buildId, jobId, blockedBy } = config; // in case config contains something else
768
762
 
769
763
  const numDeleted = await executor.queueBreaker.runCommand('del', executor.buildQueue, 'start', [
770
764
  {
@@ -25,8 +25,6 @@
25
25
  }
26
26
  ]]
27
27
 
28
- -- Load cjson for JSON encoding/decoding
29
- local cjson = require("cjson")
30
28
 
31
29
  -- Parse arguments
32
30
  local buildId = ARGV[1]