LatticaAI Documentation
  • Welcome to LatticaAI
  • Conceptual Guide
  • Architecture Overview
    • Management Client
    • Query Client
  • Platform Workflows
    • Account Management
    • Model Management
    • User Access Management
    • Query Submission
    • Credit Management
    • Worker Management
  • How-To Guides
    • Client Installation
      • How-To: Install Management Client
      • How-To: Install Query Client
    • Model Lifecycle
      • How-To: Deploy AI model
      • How-To: Modify AI Model Settings
    • Access Control
      • How-To: Create User Access Token
      • How-To: Modify User Access Token Setting
      • How-To: Remove Token's Assignment
      • How-To: Assign Token to Model
      • How-To: See List of Tokens
    • Resource Management
      • How-To: Start Worker
      • How-To: Stop Worker
      • How-To: Monitor Worker Performance
    • Secure Query Processing
      • How To: Upload Evaluation Key
      • How-To: Encrypt Input Message
      • How To: Execute Query
      • How-To: Decrypt Output Data
      • How-To: Encrypt, Execute, and Decrypt in One Step
    • Account and Finance Operations
      • How-To: View Payment Transaction History
      • How-To: Update Account Information
      • How-To: View Credit Balance and Add Credit to Your Account
      • How-To: Monitor Balance and Usage
  • Demo Tutorials
    • Image Sharpening with LatticaAI Demo Tutorial
    • Sentiment Analysis with LatticaAI Demo Tutorial
    • Health Analysis with LatticaAI Demo Tutorial
    • Digit Recognition with LatticaAI Demo Tutorial
    • Zooming Into Each Step of Demo Run with LatticaAI flow
Powered by GitBook
On this page

Was this helpful?

  1. How-To Guides
  2. Resource Management

How-To: Start Worker

PreviousResource ManagementNextHow-To: Stop Worker

Last updated 3 months ago

Was this helpful?

Starting a worker allows the associated AI model to process end-user queries. This guide explains how to start a worker for a specific model.


  • Credit Balance: Check that you have enough credits in your account to run the worker.

  • Worker Scaling: You can run as many workers as needed for each model. If queries are slow due to high demand, start more workers to improve performance.


Log in to the web console to access the Main Page, where modules for each of your models are displayed and identify the module corresponding to the model for which you want to start a worker.

1

Start a New Worker

  • In the model’s module, click the "Add Worker" button.

  • This action will start a new worker dedicated to processing queries for the selected model.

2

View Running Workers

  • Expand the Worker Section within the model’s module to view all currently running workers.

  • The section lists each worker along with its start time, allowing you to monitor activity.

# Start Worker

import LatticaManagement

# Authenticate
lattica = LatticaManagement("your_license_from_lattica_console")

# get list of models
models = lattica.get_models()

# Start a new worker session. Returns an Active worker session id.
worker_session_id = lattica.start_worker(models[0].model_id) 

Start Worker