fix: add k8s job creation timeout + logging to debug hang
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
c5a462607a
commit
8301f641e0
1 changed files with 2 additions and 1 deletions
|
|
@ -285,7 +285,8 @@ def spawn_agent_job(
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
batch_v1.create_namespaced_job(namespace=K8S_NAMESPACE, body=job)
|
log.info("Creating k8s job %s", name)
|
||||||
|
batch_v1.create_namespaced_job(namespace=K8S_NAMESPACE, body=job, _request_timeout=30)
|
||||||
log.info("Spawned job %s for role=%s task=%d", name, role, task_id)
|
log.info("Spawned job %s for role=%s task=%d", name, role, task_id)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue