Skip to content

Commit

Permalink
adapt migration guide + dbtool to include new job command (#7493)
Browse files Browse the repository at this point in the history
  • Loading branch information
fm3 authored Dec 11, 2023
1 parent c7fb582 commit fb762a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions MIGRATIONS.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ User-facing changes are documented in the [changelog](CHANGELOG.released.md).
- The config `setting play.http.secret.key` (secret random string) now requires a minimum length of 32 bytes.
- If your setup contains webknossos-workers, postgres evolution 110 introduces the column `supportedJobCommands`. This needs to be filled in manually for your workers. Currently available job commands are `compute_mesh_file`, `compute_segment_index_file`, `convert_to_wkw`, `export_tiff`, `find_largest_segment_id`, `infer_nuclei`, `infer_neurons`, `materialize_volume_annotation`, `render_animation`. [#7463](https://github.com/scalableminds/webknossos/pull/7463)
- If your setup contains webknossos-workers, postgres evolution 110 introduces the columns `maxParallelHighPriorityJobs` and `maxParallelLowPriorityJobs`. Make sure to set those values to match what you want for your deployment. [#7463](https://github.com/scalableminds/webknossos/pull/7463)
- If your setup contains webknossos-workers, you may want to add the new available worker job `compute_segment_index_file` to the `supportedJobCommands` column of one or more of your workers. [#7493](https://github.com/scalableminds/webknossos/pull/7493)

### Postgres Evolutions:

Expand Down
2 changes: 1 addition & 1 deletion tools/postgres/dbtool.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ program
console.log("Enabling jobs in the local database by inserting a worker.");
console.log(
callPsql(
`INSERT INTO webknossos.workers(_id, _dataStore, key, supportedJobCommands) VALUES('6194dc03040200b0027f28a1', 'localhost', 'secretWorkerKey', '{compute_mesh_file, convert_to_wkw, export_tiff, find_largest_segment_id, globalize_floodfills, infer_nuclei, infer_neurons, materialize_volume_annotation, render_animation}') ON CONFLICT DO NOTHING;`,
`INSERT INTO webknossos.workers(_id, _dataStore, key, supportedJobCommands) VALUES('6194dc03040200b0027f28a1', 'localhost', 'secretWorkerKey', '{compute_mesh_file, convert_to_wkw, export_tiff, find_largest_segment_id, globalize_floodfills, infer_nuclei, infer_neurons, materialize_volume_annotation, render_animation, compute_segment_index_file}') ON CONFLICT DO NOTHING;`,
),
);
console.log("✨✨ Done");
Expand Down

0 comments on commit fb762a1

Please sign in to comment.