196 Commits

Author SHA1 Message Date
Sybren A. Stüvel
16da14479b OAPI: regenerate code 2023-05-26 11:25:51 +02:00
Sybren A. Stüvel
ef53304b1b Fix #104206: Worker cluster assignment is lost when blender is restarted
The available worker clusters are stored on the addon preferences, to be
available across restarts of Blender. The prefs were not marked as 'dirty'
though, so Blender never actually saved them. That's now resolved.
2023-04-24 12:42:45 +02:00
Sybren A. Stüvel
0e0fddc076 Add-on: Change 'No Cluster' to 'All'
In the 'Cluster' drop-down, change the label and tooltip of the 'No
Cluster' option. The functionality is still the same, it causes the job
to be submitted without cluster assigned. The wording now reflect
Flamenco's behaviour better, instead of describing this technical aspect.

Old: "No Cluster", "No cluster assigned, any worker can handle this job"
New: "All", "No specific cluster assigned, any worker can handle this job"
2023-04-08 11:30:25 +02:00
Sybren A. Stüvel
f5ab2bb4c2 OAPI: regenerate code 2023-04-04 13:18:59 +02:00
Sybren A. Stüvel
2a6cbcf030 Addon: Add worker cluster support
Worker clusters can be fetched from the Manager, and submitted jobs can
be assigned to those clusters.
2023-04-04 12:19:44 +02:00
Sybren A. Stüvel
675d966263 OAPI: regenerate code 2023-04-04 12:18:17 +02:00
Sybren A. Stüvel
996f5da2af Bumped version to 3.3-alpha0 2023-03-21 12:22:38 +01:00
Sybren A. Stüvel
9e1948a1a0 Bump version to v3.2 2023-02-21 12:09:08 +01:00
Nitin-Rawat-1
4efed64a77 Fix error submitting job when not using Shaman
Fix #104183: Error submitting job to flamenco manager.

The bug happened when a user, using filesystem as storage solution,
would try to submit the job to the flamenco manager. The user would be shown
an Error -> Error packing with BAT: 'Packer' object has no attribute 'actual_checkout_path'.

The fix was to account for multiple implementations of the Packer object.

Reviewed-on: https://projects.blender.org/studio/flamenco/pulls/104184
2023-02-17 11:06:07 +01:00
Sybren A. Stüvel
80e0d0fc18 Bumped version to 3.2-beta 2023-02-07 15:38:14 +01:00
Sybren A. Stüvel
c21cc7d316 OAPI: regenerate code 2023-02-03 16:44:55 +01:00
Sybren A. Stüvel
067f2a439e OAPI: regenerate code 2023-01-08 13:47:38 +01:00
Sybren A. Stüvel
2e5f5ffadd OAPI: regenerate code 2023-01-04 01:18:21 +01:00
Sybren A. Stüvel
f413a40f4e Store Shaman checkout ID when submitting a job
If Shaman is used to submit the job files, store the job's checkout ID
(i.e. the path relative to the checkout root) in the database. This will
make it possible in the future to remove the Shaman checkout along with
the job itself.
2023-01-04 01:18:21 +01:00
Sybren A. Stüvel
bb41889f1c OAPI: regenerate code 2023-01-04 01:18:21 +01:00
Sybren A. Stüvel
7f268f2177 Add-on: abort submission when job preparation fails
Job preparation (that is, constructing the data to be sent to the Flamenco
API) shouldn't fail, but in case it does, it should stop the rest of the
submission process.
2023-01-04 01:18:21 +01:00
Sybren A. Stüvel
84470eeb81 Bump Blender Asset Tracer (BAT) to version 1.15
Bump BAT from 1.14 to 1.15 to add support for fluid sim caches.
2022-12-16 15:28:52 +01:00
Sybren A. Stüvel
4ef5373756 Add-on: add support for the use_all_linked_data_direct option
Add support for Blender's `use_all_linked_data_direct` experimental
option. This is a workaround for an issue with BAT, for which a quick
solution is required by the Blender Studio (production crunch).

Flamenco writes the `.flamenco.blend` file with
`preferences.experimental.use_all_linked_data_direct` set to `True`, so
that BAT has an easier time finding linked assets.
2022-12-02 14:31:23 +01:00
Yann Doersam
1cef0d48df Addon: Show error if the file path is not known before submitting
If file has never been saved, Flamenco cannot create a temp copy to
submit. This caused an exception, which is now avoided by showing a
clear error message instead.

Maniphest Tasks: T102192

Differential Revision: https://developer.blender.org/D16358
2022-11-08 11:48:10 +01:00
Sybren A. Stüvel
074c60df9d Cleanup: add-on, reformat with black
No functional changes.
2022-10-20 13:14:51 +02:00
Sybren A. Stüvel
32a3e48e24 Add-on: use job check endpoint before sending files to the farm 2022-10-20 13:14:01 +02:00
Sybren A. Stüvel
c439bc3a1e OAPI: regenerate code 2022-10-20 13:13:22 +02:00
Sybren A. Stüvel
70bb0c2655 Bumped version to 3.2-alpha 2022-10-20 12:10:30 +02:00
Sybren A. Stüvel
8a36cf1d38 Bumped version to 3.1 2022-10-18 10:57:13 +02:00
Andrew
0bc0a7ac9b Fix issue submitting to Shaman from Windows machine
Fix a BAT error that arises when submitting a job from a Windows
workstation to a Shaman flamenco system. BAT expects an absolute path,
but on Windows systems, absolute paths begin with a drive letter.

This patch adds an arbitrary drive letter, and later removes it once the
relative paths have been computed.

Reviewed by: sybren

Differential Revision: https://developer.blender.org/D16084
2022-10-13 15:56:30 +02:00
Sybren A. Stüvel
94015cc3ee Cleanup: Add-on, add comment to clarify a Shaman-specific function 2022-10-06 14:41:50 +02:00
Sybren A. Stüvel
c6ede93fc1 OAPI: regenerate code 2022-09-30 16:28:16 +02:00
Sybren A. Stüvel
c42b8fec29 Bumped version to 3.1-alpha 2022-09-27 12:31:14 +02:00
Sybren A. Stüvel
11785ca51c Bumped version to 3.0 2022-09-12 15:49:12 +02:00
Sybren A. Stüvel
ddfe3199d0 Add-on: report which files were missing
After submission, list the missing files on the terminal (if there are
any).
2022-09-12 15:41:03 +02:00
Sybren A. Stüvel
e7aa637ed5 Add-on: update to BAT 1.14
BAT 1.14 improves some progress reporting when packing files, so it now
properly shows which file is being investigated in the Flamenco UI.
2022-09-12 15:34:27 +02:00
Sybren A. Stüvel
6185a428a8 Add-on: much faster processing of BAT progress messages
BAT-packing is a multi-threaded operation, so messages about its progress
are queued up in a thread-safe manner. The modal operator was only handling
4 messages per second, causing major slowdowns when there are lots of
small files to be processed. This is now done much faster, and thus the
UI shouldn't lag behind of the actual submissions progress.
2022-09-12 15:33:37 +02:00
Sybren A. Stüvel
de500ba1df Bumped version to 3.0-beta3 2022-08-31 17:50:46 +02:00
Sybren A. Stüvel
fa69cc102b Add-on: clearer error message when job compiler refuses the job
Blender now shows the actual returned error from the Manager when job
submission fails, rather than a generic "failed" message.
2022-08-31 16:22:34 +02:00
Sybren A. Stüvel
6f876658c1 Add-on: remove debug print 2022-08-31 16:04:00 +02:00
Sybren A. Stüvel
de8da6eac5 Bumped version to 3.0-beta2 2022-08-31 12:10:02 +02:00
Sybren A. Stüvel
3ecdeacc80 Add-on: fix wrong parameter being passed 2022-08-31 12:08:46 +02:00
Sybren A. Stüvel
31cf0a4ecc Implement getSharedStorage operation & use it in the add-on
Implement the `getSharedStorage` operation in the Manager, and use it in
the add-on to get the shared storage location in a way that makes sense
for the platform of the user.

Manifest task: T100196
2022-08-31 11:44:37 +02:00
Sybren A. Stüvel
0a1e1efc41 OAPI: regenerate code 2022-08-31 11:42:46 +02:00
Sybren A. Stüvel
bb377e7572 Add-on: fix typo causing an AttributeError 2022-08-31 11:37:16 +02:00
Sybren A. Stüvel
413e5c71e2 Add-on: fix mypy warning
No functional changes.
2022-08-31 11:35:31 +02:00
Sybren A. Stüvel
59f41d0546 Add-on: show warning when versions are not matching
Before submitting a job, the add-on now checks the version of the Manager.
If this is not the same version of the add-on, a warning is shown and a
"Force Submit" button appears. This makes it both explicit that something
is iffy and still allows for pushing forward.

This is important when upgrading Flamenco, because I'm sure many people
will forget to actually redownload and reinstall the add-on.
2022-08-31 09:27:50 +02:00
Sybren A. Stüvel
ffaaf78c8c OAPI: regenerate code 2022-08-31 08:58:47 +02:00
Sybren A. Stüvel
0b176eda96 Add-on: include error cause in "Error performing BAT pack" message
The error can get cryptic, but without opening the terminal people
otherwise would have no idea what's going on.
2022-08-31 08:09:11 +02:00
Sybren A. Stüvel
a7510f4042 Cleanup: addon, split ping_manager() into two functions
Split the `comms.ping_manager()` function into two: one that returns the
version & config of the Manager, and the other that reports on it.

This will make it possible to do the former without the latter in certain
other situations where we want to refresh the manager info in the
background.
2022-08-31 08:08:06 +02:00
Sybren A. Stüvel
db9aca4a37 Add-on: allow setting job priority when submitting
The job priority was always intended to be settable when submitting, and
editable afterwards. This commit implements the former.
2022-08-30 14:51:48 +02:00
Sybren A. Stüvel
f82ebea11d Add-on: handle submission errors more gracefully 2022-08-25 13:28:45 +02:00
Sybren A. Stüvel
22aa041ec1 Allow relative render output root paths
Add a new `abspath(path)` function to the add-on, for use in job type
settings. With this, the "simple blender render" job can support relative
paths for the "render output root" setting, and still have an absolute
final "render output path".
2022-08-25 13:14:48 +02:00
Sybren A. Stüvel
458c33573e OAPI: regenerate code 2022-08-11 16:58:05 -07:00
Sybren A. Stüvel
4744904502 Add-on: fix mypy error 2022-08-04 16:39:05 +02:00