
Add a script `debug-worker-add.sh` which allows additions of mock workers to Flamenco. It is useful for testing the UI for larger lists of worker items. It assists the development of multi-selection for workers #104395 Reviewed-on: https://projects.blender.org/studio/flamenco/pulls/104394
13 lines
322 B
Bash
Executable File
13 lines
322 B
Bash
Executable File
#!/bin/bash
|
|
|
|
curl -v -X 'POST' \
|
|
'http://localhost:8080/api/v3/worker/register-worker' \
|
|
-H 'accept: application/json' \
|
|
-H 'Content-Type: application/json' \
|
|
-d '{
|
|
"name": "Test Worker",
|
|
"secret": "abcdefg",
|
|
"platform": "Linux",
|
|
"supported_task_types": ["blender", "ffmpeg", "file-management", "misc"]
|
|
}'
|