Skip to content

Celery Stats

Operations Summary

Method Endpoint Description
GET /api/celery-stats/ Get Celery worker statistics

Get Celery worker statistics

Provides a snapshot of the Celery workers' status, including active, scheduled, reserved, and revoked tasks, as well as worker-specific statistics. Requires support user permissions.

1
2
3
4
http \
  GET \
  https://api.example.com/api/celery-stats/ \
  Authorization:"Token YOUR_API_TOKEN"
1
2
3
4
5
6
7
8
9
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.celery_stats import celery_stats_retrieve # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = celery_stats_retrieve.sync(client=client)

print(response)
  1. API Source: celery_stats_retrieve
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
import { celeryStatsRetrieve } from 'waldur-js-client';

try {
  const response = await celeryStatsRetrieve({
  auth: "Token YOUR_API_TOKEN"
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}

200 -