Sybren A. Stüvel
ce07a46455
Fix error fetching non-existing log tail
...
A task can exist in the database but not have any log stored on disk yet.
This is now returned as `204 No Content` instead of an internal server
error.
The web interface is also adjusted to cope with this.
2022-05-30 19:23:10 +02:00
Sybren A. Stüvel
cc62cab1d6
Update code to handle the JobUpdate
to SocketIOJobUpdate
rename
...
No functional changes.
2022-05-19 15:18:06 +02:00
Sybren A. Stüvel
43f244ecab
Manager: move TaskUpdate API function from jobs.go to workers.go
...
The OpenAPI spec tags this operation as `workers`, so it should be in
`workers.go`.
No functional changes.
2022-05-19 14:20:02 +02:00
Sybren A. Stüvel
5466f65225
OAPI: add setJobStatus
operation
...
Add API endpoint for updating the job status.
2022-04-21 19:06:18 +02:00
Sybren A. Stüvel
954af37fd5
Manager: rename assertXXXResponse
to assertResponseXXX
...
Rename test functions like `assertJSONResponse` to `assertResponseJSON`,
so that they get ordered together by autocompletion.
No functional changes.
2022-04-21 12:01:46 +02:00
Sybren A. Stüvel
d099a31531
OAPI: add endpoint for getting a single job type
...
This will be used by the web frontend to determine which job settings
to show and which to hide.
2022-04-15 16:21:48 +02:00
Sybren A. Stüvel
de3c4af8cb
Manager: fix broken unit test
2022-04-15 14:37:41 +02:00
Sybren A. Stüvel
89e130c04f
Manager: update tests for inclusion of job name in job updates
2022-04-08 11:59:30 +02:00
Sybren A. Stüvel
a715b3bfbe
Manager: connect SocketIO broadcaster with job creation
2022-04-05 16:19:33 +02:00
Sybren A. Stüvel
e57de8ab53
Manager: Tests, allow mocking requests that are not Worker-authenticated
2022-03-25 16:10:50 +01:00
Sybren A. Stüvel
9f5e4cc0cc
License: license all code under "GPL-3.0-or-later"
...
The add-on code was copy-pasted from other addons and used the GPL v2
license, whereas by accident the LICENSE text file had the GNU "Affero" GPL
license v3 (instead of regular GPL v3).
This is now all streamlined, and all code is licensed as "GPL v3 or later".
Furthermore, the code comments just show a SPDX License Identifier
instead of an entire license block.
2022-03-07 15:26:46 +01:00
Sybren A. Stüvel
47e36c927c
Change package URL to the blender.org repository
2022-03-01 20:45:09 +01:00
Sybren A. Stüvel
3d854078ba
Manager: integrate task state machine into API implementation
2022-02-25 16:30:27 +01:00
Sybren A. Stüvel
f0215e20b8
Cleanup: move license block
2022-02-21 20:11:52 +01:00
Sybren A. Stüvel
b3b132fd44
Fix task update unit test
2022-02-21 20:11:19 +01:00
Sybren A. Stüvel
c4df62d5d4
Start of sending task updates to Manager
...
This includes a mocking framework for unittests.
2022-02-15 15:58:24 +01:00