> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oktolabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Run Tick Now

> Trigger the KG decay tick manually (idempotent — concurrent calls
return 409 until the in-flight tick releases the advisory lock).

Body:
    - ``board_id`` (optional): scope the tick to a single board. When
      omitted, the tick runs globally (same scope as the cron schedule).
    - ``force_full_rebuild`` (optional, default false): zero out
      ``last_recomputed_at`` for nodes in scope BEFORE the tick, forcing
      recompute even of fresh nodes (ignores staleness threshold).

Returns 202 with tick_id immediately; the tick runs in background.
Operator monitors progress via KGHealthView snapshot polling (30s).

Returns 409 when the advisory lock is already held by the cron OR
another manual trigger.



## OpenAPI

````yaml /openapi.json post /api/v1/kg/tick/run-now
openapi: 3.1.0
info:
  description: >-
    Okto Pulse REST API schema generated from okto-pulse-core 0.2.0 source for
    docs.oktolabs.ai.
  title: Okto Pulse
  version: 0.2.0
servers: []
security: []
paths:
  /api/v1/kg/tick/run-now:
    post:
      tags:
        - kg-tick
      summary: Run Tick Now
      description: |-
        Trigger the KG decay tick manually (idempotent — concurrent calls
        return 409 until the in-flight tick releases the advisory lock).

        Body:
            - ``board_id`` (optional): scope the tick to a single board. When
              omitted, the tick runs globally (same scope as the cron schedule).
            - ``force_full_rebuild`` (optional, default false): zero out
              ``last_recomputed_at`` for nodes in scope BEFORE the tick, forcing
              recompute even of fresh nodes (ignores staleness threshold).

        Returns 202 with tick_id immediately; the tick runs in background.
        Operator monitors progress via KGHealthView snapshot polling (30s).

        Returns 409 when the advisory lock is already held by the cron OR
        another manual trigger.
      operationId: run_tick_now_api_v1_kg_tick_run_now_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TickRunNowRequest'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TickRunNowResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    TickRunNowRequest:
      properties:
        board_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Board Id
        force_full_rebuild:
          default: false
          title: Force Full Rebuild
          type: boolean
      title: TickRunNowRequest
      type: object
    TickRunNowResponse:
      properties:
        scheduled_at:
          title: Scheduled At
          type: string
        status:
          title: Status
          type: string
        tick_id:
          title: Tick Id
          type: string
      required:
        - tick_id
        - status
        - scheduled_at
      title: TickRunNowResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````