test timeout 1_000_000_000_000
parent
eecce6bf20
commit
56076ca47c
|
|
@ -3079,6 +3079,7 @@ class Kubernetes {
|
|||
yield new Promise((promise) => setTimeout(promise, 5000));
|
||||
const jobSpec = kubernetes_job_spec_factory_1.default.getJobSpec(commands, image, mountdir, workingdir, environment, secrets, this.buildGuid, this.buildParameters, this.secretName, this.pvcName, this.jobName, k8s);
|
||||
cloud_runner_logger_1.default.log(`Job spec created`);
|
||||
yield new Promise((promise) => setTimeout(promise, 5000));
|
||||
yield this.kubeClientBatch.createNamespacedJob(this.namespace, jobSpec);
|
||||
cloud_runner_logger_1.default.log(`Build job created`);
|
||||
yield new Promise((promise) => setTimeout(promise, 5000));
|
||||
|
|
@ -3103,7 +3104,7 @@ class Kubernetes {
|
|||
yield this.kubeClientBatch.deleteNamespacedJob(this.jobName, this.namespace);
|
||||
yield this.kubeClient.deleteNamespacedPod(this.podName, this.namespace);
|
||||
yield this.kubeClient.deleteNamespacedSecret(this.secretName, this.namespace);
|
||||
yield new Promise((promise) => setTimeout(promise, 5000));
|
||||
yield new Promise((promise) => setTimeout(promise, 15000));
|
||||
}
|
||||
catch (error) {
|
||||
if (error.response.body.reason === `not found`) {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -182,6 +182,7 @@ class Kubernetes implements ProviderInterface {
|
|||
k8s,
|
||||
);
|
||||
CloudRunnerLogger.log(`Job spec created`);
|
||||
await new Promise((promise) => setTimeout(promise, 5000));
|
||||
await this.kubeClientBatch.createNamespacedJob(this.namespace, jobSpec);
|
||||
CloudRunnerLogger.log(`Build job created`);
|
||||
await new Promise((promise) => setTimeout(promise, 5000));
|
||||
|
|
@ -205,7 +206,7 @@ class Kubernetes implements ProviderInterface {
|
|||
await this.kubeClientBatch.deleteNamespacedJob(this.jobName, this.namespace);
|
||||
await this.kubeClient.deleteNamespacedPod(this.podName, this.namespace);
|
||||
await this.kubeClient.deleteNamespacedSecret(this.secretName, this.namespace);
|
||||
await new Promise((promise) => setTimeout(promise, 5000));
|
||||
await new Promise((promise) => setTimeout(promise, 15000));
|
||||
} catch (error: any) {
|
||||
if (error.response.body.reason === `not found`) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue