Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion backend/indexing-job-manager-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ spec:
schedule: "*/5 * * * *"
jobTemplate:
spec:
ttlSecondsAfterFinished: 30
template:
metadata:
labels:
Expand Down
4 changes: 2 additions & 2 deletions backend/indexing-job-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ spec:
imagePullPolicy: Always
resources:
requests:
cpu: "6"
memory: "56Gi"
cpu: "5"
memory: "36Gi"
limits:
cpu: "8"
memory: "64Gi"
Expand Down
5 changes: 3 additions & 2 deletions backend/manage-indexing-jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def list_k8s_jobs(namespace: str) -> list[str]:
jobs = batch_v1.list_namespaced_job(namespace=namespace)
job_list = []
for job in jobs.items:
job_list.append(job.metadata.name)
if job.metadata.name.startswith("indexing-job-") and job.status.active:
job_list.append(job.metadata.name)
return job_list


Expand Down Expand Up @@ -124,7 +125,7 @@ def main():
)
pipelinejob = PipelineJob()
pipeline_job = pipelinejob.load_item(item["sanitized_index_name"])
pipeline_job["status"] = PipelineJobState.FAILED.value
pipeline_job.status = PipelineJobState.FAILED
else:
print(
f"Indexing job for '{item['human_readable_index_name']}' already running. Will not schedule another. Exiting..."
Expand Down
Loading