om-ticket-cleaner

command
v0.0.0-...-8163f96 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

README

om-ticket-cleaner

Install

go install github.com/castaneai/omtools/cmd/om-ticket-cleaner@latest

Usage

om-ticket-cleaner <REDIS_ADDR> <STALE_TIME>

This is an example of a Kubernetes CronJob that periodically deletes tickets created more than 10 minutes ago.

apiVersion: batch/v1
kind: CronJob
metadata:
  name: om-ticket-cleaner
  namespace: open-match
spec:
  schedule: "* * * * *"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
            - name: om-ticket-cleaner
              image: ghcr.io/castaneai/omtools/om-ticket-cleaner:latest
              args:
                - "redis-host:6379"
                - "10m"
          restartPolicy: OnFailure

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL