diff --git a/src/main/groovy/io/seqera/wave/service/blob/impl/KubeTransferStrategy.groovy b/src/main/groovy/io/seqera/wave/service/blob/impl/KubeTransferStrategy.groovy index 0cc5ef9ca..e36ee27f2 100644 --- a/src/main/groovy/io/seqera/wave/service/blob/impl/KubeTransferStrategy.groovy +++ b/src/main/groovy/io/seqera/wave/service/blob/impl/KubeTransferStrategy.groovy @@ -50,7 +50,7 @@ class KubeTransferStrategy implements TransferStrategy { @Override BlobCacheInfo transfer(BlobCacheInfo info, List command) { final name = getName(info) - final job = k8sService.transferJob(name, name, blobConfig.s5Image, command, blobConfig) + final job = k8sService.transferJob(name, blobConfig.s5Image, command, blobConfig) final podList = k8sService.waitJob(job, blobConfig.transferTimeout.toMillis()) if ( !podList || podList.items.size() < 1 ) { throw new TransferTimeoutException("Blob transfer job timeout") diff --git a/src/main/groovy/io/seqera/wave/service/k8s/K8sService.groovy b/src/main/groovy/io/seqera/wave/service/k8s/K8sService.groovy index 8fb50124c..27b8b7689 100644 --- a/src/main/groovy/io/seqera/wave/service/k8s/K8sService.groovy +++ b/src/main/groovy/io/seqera/wave/service/k8s/K8sService.groovy @@ -56,7 +56,7 @@ interface K8sService { V1ContainerStateTerminated waitPod(V1Pod pod, long timeout) - V1Job transferJob(String name, String podName, String containerImage, List args, BlobCacheConfig blobConfig) + V1Job transferJob(String name, String containerImage, List args, BlobCacheConfig blobConfig) V1PodList waitJob(V1Job job, Long timeout) diff --git a/src/main/groovy/io/seqera/wave/service/k8s/K8sServiceImpl.groovy b/src/main/groovy/io/seqera/wave/service/k8s/K8sServiceImpl.groovy index 527a5dd8c..f64b2df9f 100644 --- a/src/main/groovy/io/seqera/wave/service/k8s/K8sServiceImpl.groovy +++ b/src/main/groovy/io/seqera/wave/service/k8s/K8sServiceImpl.groovy @@ -578,15 +578,15 @@ class K8sServiceImpl implements K8sService { } @Override - V1Job transferJob(String name, String podName, String containerImage, List args, BlobCacheConfig blobConfig) { - final spec = createTransferSpec(name, podName, containerImage, args, blobConfig) + V1Job transferJob(String name, String containerImage, List args, BlobCacheConfig blobConfig) { + final spec = createTransferSpec(name, containerImage, args, blobConfig) return k8sClient .batchV1Api() .createNamespacedJob(namespace, spec, null, null, null,null) } - V1Job createTransferSpec(String name, String podName, String containerImage, List args, BlobCacheConfig blobConfig) { + V1Job createTransferSpec(String name, String containerImage, List args, BlobCacheConfig blobConfig) { V1JobBuilder builder = new V1JobBuilder() @@ -610,7 +610,7 @@ class K8sServiceImpl implements K8sService { .withActiveDeadlineSeconds(blobConfig.transferTimeout.toSeconds()) .withRestartPolicy("Never") .addNewContainer() - .withName(podName) + .withName(name) .withImage(containerImage) .withArgs(args) .withResources(resources)