The bpy.ops.flamenco.submit_job() API execution fails when submitting render task in the background #104187
Labels
No Label
Good First Issue
Priority
High
Priority
Low
Priority
Normal
Status
Archived
Status
Confirmed
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Job Type
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: studio/flamenco#104187
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating System(s): Windows 10
Flamenco Version
Is Broken: Flamenco 3.1
Worked OK:
Short description of error
I used a python script to submit render task with bpy.ops.flamenco.submit_job() API. That is OK when I running this script by command,
but when I want to execute it in the background by this command,
the script will have problem, it shows that:
This is my code,
I don't know why the bpy.ops.flamenco.submit_job() connot work in the background.
Please help!
Hi @kaikai_liu, I'm trying to do the same thing and I've ended up in the same situation.
The Flamenco add-on was not designed for running in the background. It only has an
invoke()
function, which is meant for interactive use, and thus is not available when running Blender in headless mode.What's the organisation of your storage? As in, which of the three options documented at https://flamenco.blender.org/usage/shared-storage/ are you using? If I know that, I can help you better with a solution that may not even involve running Blender at all (to submit the job, that is).
Hey, thanks for your response. In my case I'm using Shaman.
I thought about implementing my own API client to submit jobs, but since I don't know the ins and outs of Shaman, I thought it would just be easier to use the add-on.
This is my imperfect, quick and easy solution. Run Blender in graphical mode, submit the job and kill Blender after some time.
Thanks, I read about Flamenco API and found a solution to my problem. It's a good idea to submit my job without running Blender.
@a13xie when using Shaman things are quite a bit more complex, and indeed then you'd need some functionality of the add-on. I would recommend copying the
addon/flamenco/bat
directory into your own Python code, to see if you can use it (after some adjustments) directly. Submitting to Shaman doesn't need Blender.