---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: anticompositebot.uncat
  labels:
    name: anticompositebot.uncat
    toolforge: tool
spec:
  schedule: "30 7 */7 * *"
  concurrencyPolicy: Replace
  successfulJobsHistoryLimit: 1
  jobTemplate:
    spec:
      template:
        metadata:
          labels:
            toolforge: tool
        spec:
          containers:
          - name: uncat
            image: docker-registry.tools.wmflabs.org/toolforge-python39-sssd-base:latest
            command: [
              "/data/project/anticompositebot/AntiCompositeBot/venv/bin/python3",
              "/data/project/anticompositebot/AntiCompositeBot/src/uncat.py"
            ]
            workingDir: /data/project/anticompositebot
            env:
              - name: HOME
                value: /data/project/anticompositebot
              - name: LOG_SMTP
                value: "True"
            imagePullPolicy: Always
            resources:
              limits:
                memory: 4Gi
          restartPolicy: OnFailure
