Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to retrieve statuses of all jobs from the Orchestration API #8893

Open
lawrencechong opened this issue Oct 31, 2024 · 3 comments
Open
Assignees
Labels
api:orchestration Issues related to Orchestration API enhancement New feature proposal

Comments

@lawrencechong
Copy link

lawrencechong commented Oct 31, 2024

Following Instructions to trigger v1/pre-aggregations/jobs to Retrieving statuses of jobs returns this error

curl \
  -d '{
    "action": "get",
  }' \
  -H "Content-Type: application/json" \
  -X GET \
  http://mycubejs.com:4000/cubejs-api/v1/pre-aggregations/jobs
{"error":"SyntaxError: Expected double-quoted property name in JSON at position 25","stack":"SyntaxError: Expected double-quoted property name in JSON at position 25\n    at JSON.parse (<anonymous>)\n    at parse (/cube/node_modules/body-parser/lib/types/json.js:92:19)\n    at /cube/node_modules/body-parser/lib/read.js:128:18\n    at AsyncResource.runInAsyncScope (node:async_hooks:206:9)\n    at invokeCallback (/cube/node_modules/raw-body/index.js:238:16)\n    at done (/cube/node_modules/raw-body/index.js:227:7)\n    at IncomingMessage.onEnd (/cube/node_modules/raw-body/index.js:287:7)\n    at IncomingMessage.emit (node:events:519:28)\n    at endReadableNT (node:internal/streams/readable:1696:12)\n    at processTicksAndRejections (node:internal/process/task_queues:82:21)"}

Details

  • self hosted
  • updated configs to include jobs scope
  • our system has 1 cubestore router and 3 cubestore workers
  • running in dev mode without auth
@igorlukanin igorlukanin self-assigned this Nov 1, 2024
@igorlukanin igorlukanin added question The issue is a question. Please use Stack Overflow for questions. api:orchestration Issues related to Orchestration API labels Nov 1, 2024
@igorlukanin
Copy link
Member

Hi @lawrencechong 👋

I believe this is not a correct request. The tokens parameter is required for the get action. Please see the example in the docs: https://cube.dev/docs/reference/rest-api#retrieving-statuses-of-jobs

@lawrencechong
Copy link
Author

@igorlukanin is there anyway to have tokens be optional and have it return all jobs?

@igorlukanin
Copy link
Member

This is not what is currently implemented but I guess this might be a nice feature request.

@igorlukanin igorlukanin added enhancement New feature proposal and removed question The issue is a question. Please use Stack Overflow for questions. labels Dec 16, 2024
@igorlukanin igorlukanin changed the title Feedback for “REST API reference” Allow to retrieve statuses of all jobs from the Orchestration API Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api:orchestration Issues related to Orchestration API enhancement New feature proposal
Projects
None yet
Development

No branches or pull requests

2 participants