SaveJob | Resubmit for RenderWidth and Frames

Hi @Bobo, @eamsler, @cmoore

job = con.Jobs.GetJob(data['JobID'])
        if job:
            if job['Plug'] == '3dsmax':
                job['Props']['PlugInfo']['RenderWidth'] = data['RenderWidth']
                job['Props']['PlugInfo']['RenderHeight'] = data['RenderHeight']
                job['Props']['Frames'] = data['Frames']
                is_success = con.Jobs.SaveJob(job)
                if is_success == 'Success':
                    if con.Jobs.RequeueJob(data['JobID']) == 'Success':
                        return 'OK'

This my code, created to building real renders after the test render.

I’m sending the job. the height and width are changing, but the frames do not change. In fact, the frame job info also changes but does not change on the monitor.

As you can see, the value changes in the job info, but the monitor is not updated. Slaves continue to 5 frame renderings.

I intended to make resubmit with Requeue. Is there a direct resubmit function in the api?

Very Thanks =)

Frames require a different document in the Database to get rebuilt, so you’ll need to use SetJobFrameRange instead.

You’ll likely want to do that after RequeueJob so that you’re not messing around with the original.

If the left screenshot is of the modified job, you have submitted a SINGLE FRAME job with 5 Tasks representing Regions (Tiles or Jigsaw Regions). In that mode, we do not support rendering animation frames. No matter what you do, you will get 5 Tasks, all rendering the same single frame, but a different portion of it.

Note that when rendering a single frame with Tiles or Jigsaw, we use

format "TileJob=True\n" to:submitInfoFile
format "TileJobFrame=%\n" (currentTime.frame as integer) to:submitInfoFile

to tell the job that it will be rendering a single frame, and which frame exactly to render. In that case the Frames property you were trying to change does not control the frame to render anymore…

To have Multi-Region (Jigsaw) rendering animations, you must submit one job per region where the tasks represent the frames. The Tile rendering does not offer an animation option anymore (it was retired early in Deadline 10). If you have one job per region, then you will have to modify all frame ranges of all jobs in the Batch that render portions of the same animation.