eq_callback.php¶
Module for processing asynchronous responses from workers to manage hardware (EQ) and virtual machines. It processes task statuses (deploy, reinstall, backup, network), updates billing, and sends notifications to customers.
API Methods¶
| Method | Action | Description |
|---|---|---|
check | check job status | Checks the current status of an asynchronous job using a unique key. Returns job scope, context, and debug information. |
reinstall | callback receiver for reinstall actions | Processes callback signals from workers regarding server reinstallation tasks. It handles status updates (done, stage, failure), manages deployment logs, notifies customers via email/Kayako, and performs post-reinstall cleanup such as updating billing links or resetting network interfaces. |
eq_callback/check¶
Checks the current status of an asynchronous job using a unique key. Returns job scope, context, and debug information.
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | The action to perform (e.g., check) |
| key | ✅ | string | 32-character alphanumeric async job key |
Example Request
Example of a successful response
eq_callback/reinstall¶
Processes callback signals from workers regarding server reinstallation tasks. It handles status updates (done, stage, failure), manages deployment logs, notifies customers via email/Kayako, and performs post-reinstall cleanup such as updating billing links or resetting network interfaces.
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | The action being performed (e.g., reinstall) |
| key | ✅ | string | 32-character alphanumeric async job key |
| status | ✅ | string | Status received from the worker (e.g., OK, Error, Stage) |
Example Request
Example of a successful response
Failure response
``` { "code": -1, "message": "Key not found" }
```