Public
Documentation Settings

CronIQ

CronIQ is a powerful and reliable Node.js API designed to build a job scheduling system that excels in executing, managing, and monitoring various tasks.

One Time Job

POSTCreate new

http://127.0.0.1:8080/api/one-time-job/
AUTHORIZATIONBearer Token
Token

<token>

Bodyraw (json)
json
{
    
    "timeoutMilliSeconds": -2000
}
Example Request
curl
curl --location 'http://127.0.0.1:8080/api/one-time-job/' \
--data '{
    "code": "ls -l",
    "timeoutMilliSeconds": 30000
}'
201 Created
Example Response
json
{
  "startTime": "2023-08-06T17:27:35.366Z",
  "status": "submitted",
  "isDeleted": false,
  "id": 3,
  "code": "ls -l",
  "timeoutMilliSeconds": 30000,
  "userId": 2
}
X-Powered-By

Express

Content-Type

application/json; charset=utf-8

Content-Length

140

ETag

W/"8c-tWJTsByYa3QKjxo7oZDWzUl0zHE"

Date

Sun, 06 Aug 2023 17:27:35 GMT

Connection

keep-alive

Keep-Alive

timeout=5

GETby id

http://127.0.0.1:8080/api/one-time-job/8
AUTHORIZATIONBearer Token
Token

<token>

Bodyraw (json)
json
{
    "code": "sleep 25",
    "timeoutMilliSeconds": 30000
}
Example Request
curl
curl --location --request GET 'http://127.0.0.1:8080/api/one-time-job/3' \
--data '{
    "code": "sleep 25",
    "timeoutMilliSeconds": 30000
}'
200 OK
Example Response
json
{
  "id": 3,
  "code": "ls -l",
  "timeoutMilliSeconds": 30000,
  "startTime": "2023-08-06T17:27:35.366Z",
  "status": "submitted",
  "isDeleted": false,
  "userId": 2
}
X-Powered-By

Express

Content-Type

application/json; charset=utf-8

Content-Length

140

ETag

W/"8c-wbpJYznUkDyjuGYX4gackpDaFF4"

Date

Sun, 06 Aug 2023 17:29:42 GMT

Connection

keep-alive

Keep-Alive

timeout=5

GETall jobs

http://127.0.0.1:8080/api/one-time-job
AUTHORIZATIONBearer Token
Token

<token>

Bodyraw (json)
json
{
    "code": "sleep 25",
    "timeoutMilliSeconds": 30000
}
Example Request
curl
curl --location --request GET 'http://127.0.0.1:8080/api/one-time-job' \
--data '{
    "code": "sleep 25",
    "timeoutMilliSeconds": 30000
}'
200 OK
Example Response
json
[
  {
    "id": 3,
    "code": "ls -l",
    "timeoutMilliSeconds": 30000,
    "startTime": "2023-08-06T17:27:35.366Z",
    "status": "submitted",
    "isDeleted": false,
    "userId": 2
  },
  {
    "id": 4,
    "code": "1",
    "timeoutMilliSeconds": 30000,
    "startTime": "2023-08-06T17:28:17.507Z",
    "status": "submitted",
    "isDeleted": false,
    "userId": 2
  }
]
X-Powered-By

Express

Content-Type

application/json; charset=utf-8

Content-Length

279

ETag

W/"117-nZ0+KcsY/0VWD/l19KmAMKdc34g"

Date

Sun, 06 Aug 2023 17:29:58 GMT

Connection

keep-alive

Keep-Alive

timeout=5