games.gamesgamesgamesgames.reindexCatalogueGames

Queue a job that brings the index rows of these catalogue games back in line with the catalogue PDS. The catalogue repo itself is not changed. Admins only. One reindex runs at a time.

Details · procedure
Kindprocedure
Authoritygamesgamesgamesgames.games
Commit rev3n2ec5q2kxs25
Indexed
cid bafyreig255l73mwctri5rqkvfx2fwjkqstq6l54odvv44byamt6yd5hyni

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Queue a job that brings the index rows of these catalogue games back in line with the catalogue PDS. The catalogue repo itself is not changed. Admins only. One reindex runs at a time.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "dryRun": {
              "default": false,
              "description": "Compare only, and report how many would be reindexed.",
              "type": "boolean"
            },
            "perSecond": {
              "default": 2,
              "description": "How many records to process per second, to go easy on the catalogue PDS.",
              "maximum": 5,
              "minimum": 1,
              "type": "integer"
            },
            "uris": {
              "description": "Catalogue game URIs. The job works through them 200 at a time.",
              "items": {
                "format": "at-uri",
                "type": "string"
              },
              "maxLength": 5000,
              "minLength": 1,
              "type": "array"
            }
          },
          "required": [
            "uris"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "alreadyQueued": {
              "description": "True when a reindex was already pending or running; jobId is that job, and nothing new was queued.",
              "type": "boolean"
            },
            "count": {
              "description": "How many URIs were queued; 0 when alreadyQueued is true.",
              "type": "integer"
            },
            "jobId": {
              "maxLength": 128,
              "type": "string"
            },
            "status": {
              "description": "The existing job's status, when alreadyQueued is true.",
              "knownValues": [
                "pending",
                "running"
              ],
              "maxLength": 32,
              "type": "string"
            }
          },
          "required": [
            "jobId",
            "count"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "games.gamesgamesgamesgames.reindexCatalogueGames",
  "lexicon": 1
}