Skip to content

Commit

Permalink
Change location of events cache dir
Browse files Browse the repository at this point in the history
  • Loading branch information
azhavoro committed Jan 29, 2025
1 parent 9d563bc commit 4d07ea3
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 36 deletions.
2 changes: 1 addition & 1 deletion cvat/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ class CVAT_QUEUES(Enum):
EXPORT_CACHE_ROOT = os.path.join(CACHE_ROOT, 'export')
os.makedirs(EXPORT_CACHE_ROOT, exist_ok=True)

EVENTS_LOCAL_DB_ROOT = os.path.join(CACHE_ROOT, 'events')
EVENTS_LOCAL_DB_ROOT = os.path.join(BASE_DIR, 'events')
os.makedirs(EVENTS_LOCAL_DB_ROOT, exist_ok=True)
EVENTS_LOCAL_DB_FILE = os.path.join(
EVENTS_LOCAL_DB_ROOT,
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.14.2
version: 0.14.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
6 changes: 0 additions & 6 deletions helm-chart/templates/cvat_backend/server/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ spec:
{{- toYaml (omit $localValues.livenessProbe "enabled") | nindent 12 }}
{{- end }}
volumeMounts:
- mountPath: /home/django/data/cache/events
name: cvat-backend-per-service-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand All @@ -108,8 +106,6 @@ spec:
{{- end }}
volumeMounts:
{{- if .Values.cvat.backend.defaultStorage.enabled }}
- mountPath: /home/django/data/cache/events
name: cvat-backend-per-service-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand Down Expand Up @@ -140,8 +136,6 @@ spec:
- name: cvat-backend-data
persistentVolumeClaim:
claimName: "{{ .Release.Name }}-backend-data"
- name: cvat-backend-per-service-cache
emptyDir: {}
{{- end }}
{{- with concat .Values.cvat.backend.additionalVolumes $localValues.additionalVolumes }}
{{- toYaml . | nindent 8 }}
Expand Down
6 changes: 0 additions & 6 deletions helm-chart/templates/cvat_backend/utils/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ spec:
{{- $probeConfig := dict "args" $probeArgs "livenessProbe" $.Values.cvat.backend.worker.livenessProbe -}}
{{ include "cvat.backend.worker.livenessProbe" $probeConfig | indent 10 }}
volumeMounts:
- mountPath: /home/django/data/cache/events
name: cvat-backend-per-service-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand All @@ -92,8 +90,6 @@ spec:
{{- end }}
volumeMounts:
{{- if .Values.cvat.backend.defaultStorage.enabled }}
- mountPath: /home/django/data/cache/events
name: cvat-backend-per-service-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand Down Expand Up @@ -124,8 +120,6 @@ spec:
- name: cvat-backend-data
persistentVolumeClaim:
claimName: "{{ .Release.Name }}-backend-data"
- name: cvat-backend-per-service-cache
emptyDir: {}
{{- end }}
{{- with concat .Values.cvat.backend.additionalVolumes $localValues.additionalVolumes }}
{{- toYaml . | nindent 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ spec:
{{- $probeConfig := dict "args" $probeArgs "livenessProbe" $.Values.cvat.backend.worker.livenessProbe -}}
{{ include "cvat.backend.worker.livenessProbe" $probeConfig | indent 10 }}
volumeMounts:
- mountPath: /home/django/data/cache/events
name: cvat-backend-per-service-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand Down Expand Up @@ -95,8 +93,6 @@ spec:
{{- end }}
volumeMounts:
{{- if .Values.cvat.backend.defaultStorage.enabled }}
- mountPath: /home/django/data/cache/events
name: cvat-backend-per-service-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand Down Expand Up @@ -127,8 +123,6 @@ spec:
- name: cvat-backend-data
persistentVolumeClaim:
claimName: "{{ .Release.Name }}-backend-data"
- name: cvat-backend-per-service-cache
emptyDir: {}
{{- end }}
{{- with concat .Values.cvat.backend.additionalVolumes $localValues.additionalVolumes }}
{{- toYaml . | nindent 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ spec:
{{- $probeConfig := dict "args" $probeArgs "livenessProbe" $.Values.cvat.backend.worker.livenessProbe -}}
{{ include "cvat.backend.worker.livenessProbe" $probeConfig | indent 10 }}
volumeMounts:
- mountPath: /home/django/data/cache/events
name: cvat-backend-per-service-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand All @@ -88,8 +86,6 @@ spec:
- name: cvat-backend-data
persistentVolumeClaim:
claimName: "{{ .Release.Name }}-backend-data"
- name: cvat-backend-per-service-cache
emptyDir: {}
{{- end }}
{{- with concat .Values.cvat.backend.additionalVolumes $localValues.additionalVolumes }}
{{- toYaml . | nindent 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ spec:
{{- $probeConfig := dict "args" $probeArgs "livenessProbe" $.Values.cvat.backend.worker.livenessProbe -}}
{{ include "cvat.backend.worker.livenessProbe" $probeConfig | indent 10 }}
volumeMounts:
- mountPath: /home/django/data/cache/events
name: cvat-backend-per-service-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand Down Expand Up @@ -96,8 +94,6 @@ spec:
{{- end }}
volumeMounts:
{{- if .Values.cvat.backend.defaultStorage.enabled }}
- mountPath: /home/django/data/cache/events
name: cvat-backend-per-service-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand Down Expand Up @@ -128,8 +124,6 @@ spec:
- name: cvat-backend-data
persistentVolumeClaim:
claimName: "{{ .Release.Name }}-backend-data"
- name: cvat-backend-per-service-cache
emptyDir: {}
{{- end }}
{{- with concat .Values.cvat.backend.additionalVolumes $localValues.additionalVolumes }}
{{- toYaml . | nindent 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ spec:
{{- $probeConfig := dict "args" $probeArgs "livenessProbe" $.Values.cvat.backend.worker.livenessProbe -}}
{{ include "cvat.backend.worker.livenessProbe" $probeConfig | indent 10 }}
volumeMounts:
- mountPath: /home/django/data/cache/events
name: cvat-backend-per-service-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand Down Expand Up @@ -95,8 +93,6 @@ spec:
{{- end }}
volumeMounts:
{{- if .Values.cvat.backend.defaultStorage.enabled }}
- mountPath: /home/django/data/cache/events
name: cvat-backend-per-service-cache
- mountPath: /home/django/data
name: cvat-backend-data
subPath: data
Expand Down Expand Up @@ -127,8 +123,6 @@ spec:
- name: cvat-backend-data
persistentVolumeClaim:
claimName: "{{ .Release.Name }}-backend-data"
- name: cvat-backend-per-service-cache
emptyDir: {}
{{- end }}
{{- with concat .Values.cvat.backend.additionalVolumes $localValues.additionalVolumes }}
{{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit 4d07ea3

Please sign in to comment.