You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: serverless-fleet-worker-registration/README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# Fleet Register
2
2
3
-
A lightweight Go HTTP server that monitors IBM Cloud Code Engine fleet workers by tracking their lifecycle events in an Excel file.
3
+
A lightweight Go HTTP server that monitors IBM Cloud Code Engine fleet workers by tracking their lifecycle events in a CSV file.
4
4
5
5
## Use Case
6
6
7
-
This application is deployed as a Code Engine application to monitor fleet workers. Fleet workers call the `/register` endpoint when they start and the `/deregister` endpoint before they shut down. The application maintains a persistent Excel file tracking all worker activity, including registration and completion timestamps.
7
+
This application is deployed as a Code Engine application to monitor fleet workers. Fleet workers call the `/register` endpoint when they start and the `/deregister` endpoint before they shut down. The application maintains a persistent CSV file tracking all worker activity, including registration and completion timestamps.
8
8
9
9
**Deployment Flow:**
10
10
1. Deploy this app as a Code Engine application with persistent storage
@@ -14,14 +14,14 @@ This application is deployed as a Code Engine application to monitor fleet worke
14
14
## Endpoints
15
15
16
16
-`POST /register`
17
-
Creates a row in `fleet-register.xlsx` with status `running` and records the registration timestamp.
17
+
Creates a row in `fleet-register.csv` with status `running` and records the registration timestamp.
18
18
19
19
-`POST /deregister`
20
20
Updates the matching row by `worker_name` and `worker_ip` to `completed` and records the completion timestamp.
21
21
If no row exists, it creates a new row with status `completed`.
0 commit comments