Skip to main content
Get comprehensive status information for asynchronous endpoint executions, including progress tracking, resource usage, and execution metadata. This endpoint is essential for monitoring long-running tasks and batch processing operations.

Path Parameters

  • jobId: The unique identifier of the job to check status for

Query Parameters

  • include: Optional array of additional fields to include (logs, metrics, resources)
  • format: Response format (json, summary) - defaults to json

Example Usage

Basic Status Check

Detailed Status with Logs and Metrics

Multiple Job Status Check

Response

Successful Response

Completed Job Response

Failed Job Response

Status Values

Primary States

  • queued: Job submitted and waiting for available resources
  • initializing: Job is starting up and loading resources
  • running: Job is actively processing
  • completed: Job finished successfully
  • failed: Job encountered an error and stopped
  • cancelled: Job was cancelled by user or system
  • timeout: Job exceeded maximum execution time
  • paused: Job temporarily paused (manual or automatic)

Substates for Running Jobs

  • warming_up: Cold start - loading model and dependencies
  • processing: Actively processing input data
  • finalizing: Completing processing and preparing output
  • uploading: Transferring output to storage

Progress Tracking

Progress Information

Jobs include detailed progress information:
  • progress: Percentage completion (0-100)
  • currentStep: Current processing phase description
  • estimatedCompletion: Predicted completion timestamp
  • metadata: Task-specific progress details
  • throughput: Processing rate (items/second, tokens/second, etc.)

Real-time Updates

Resource Monitoring

GPU Utilization

Track GPU usage in real-time:

Cold Start Monitoring

Startup Performance

Track cold start metrics for optimization:

Error Handling

404 Not Found

403 Forbidden

429 Rate Limited

SDK Examples

Python SDK

JavaScript SDK

Use Cases

Production Monitoring

  • Job Dashboards: Build real-time dashboards showing job progress and resource usage
  • Alert Systems: Set up alerts for failed jobs or resource constraints
  • Capacity Planning: Monitor resource utilization to optimize cluster sizing

Batch Processing

  • Progress Tracking: Monitor large batch jobs processing thousands of items
  • Resource Optimization: Track GPU utilization to optimize batch sizes
  • Cost Management: Monitor execution costs in real-time

Development and Testing

  • Debugging: Monitor job execution to identify bottlenecks and errors
  • Performance Tuning: Track cold start times and resource usage patterns
  • Load Testing: Monitor system behavior under different load conditions

Best Practices

Monitoring Strategy

  • Use Webhooks: Prefer webhooks over polling for better performance
  • Exponential Backoff: Implement exponential backoff for polling to reduce API load
  • Batch Requests: Check multiple job statuses in a single request when possible
  • Real-time Streaming: Use SSE for real-time updates on critical jobs

Performance Optimization

  • Selective Fields: Only request additional fields (logs, metrics) when needed
  • Caching: Cache status responses for non-critical monitoring
  • Rate Limiting: Respect rate limits to avoid throttling

Error Handling

  • Graceful Degradation: Handle temporary API failures gracefully
  • Retry Logic: Implement retry logic for transient errors
  • Timeout Management: Set appropriate timeouts for long-running jobs

Cost Management

  • Monitor Costs: Track costAccrued field to prevent budget overruns
  • Resource Alerts: Set up alerts when resource usage exceeds thresholds
  • Optimization: Use status data to identify optimization opportunities
Job status is updated in real-time. Use streaming endpoints or webhooks for the most current information without overwhelming the API with polling requests.
Jobs older than 30 days are automatically deleted. Ensure you save important status information and outputs before they expire.
Use the include parameter strategically - only request additional data like logs and metrics when you actually need them to keep responses fast and reduce bandwidth usage.