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
When adding more worker groups you might also want to make them the default for a specific project. This will allow you to test it without having to change the global default:
50
+
### Shared variables
49
51
50
52
```sh
51
53
api_url=http://localhost:3030
54
+
admin_pat=tr_pat_... # edit this
55
+
```
56
+
57
+
- These are used by all commands
58
+
59
+
### Create a worker group
60
+
61
+
```sh
52
62
wg_name=my-worker
53
63
54
-
# edit these
55
-
admin_pat=tr_pat_...
64
+
curl -sS \
65
+
-X POST \
66
+
"$api_url/admin/api/v1/workers" \
67
+
-H "Authorization: Bearer $admin_pat" \
68
+
-H "Content-Type: application/json" \
69
+
-d "{\"name\": \"$wg_name\"}"
70
+
```
71
+
72
+
- If the worker group already exists, no token will be returned
0 commit comments