screwdriver-buildcluster-queue-worker 4.0.2 → 4.0.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.
- package/package.json +1 -1
- package/receiver.js +1 -1
package/package.json
CHANGED
package/receiver.js
CHANGED
|
@@ -41,7 +41,6 @@ const onMessage = data => {
|
|
|
41
41
|
const buildConfig = fullBuildConfig.buildConfig || fullBuildConfig.cacheConfig;
|
|
42
42
|
|
|
43
43
|
if (jobType === 'clear') {
|
|
44
|
-
const threadCache = spawn('./lib/cache.js');
|
|
45
44
|
const job = `jobType: ${jobType}, cacheConfig: ${buildConfig}`;
|
|
46
45
|
|
|
47
46
|
logger.info(`processing ${job}`);
|
|
@@ -57,6 +56,7 @@ const onMessage = data => {
|
|
|
57
56
|
) {
|
|
58
57
|
// eslint-disable-next-line max-len
|
|
59
58
|
let dir2Clean = buildConfig.prefix !== '' ? `${cachePath}/${buildConfig.prefix}` : `${cachePath}`;
|
|
59
|
+
const threadCache = spawn('./lib/cache.js');
|
|
60
60
|
|
|
61
61
|
dir2Clean = `${dir2Clean}/${buildConfig.scope}/${buildConfig.pipelineId}`;
|
|
62
62
|
|