Python Render Border/Tile Script for render cluster

When running the python script below in blender itself, it runs as expected: renders only the bottom right corner.

What I want is to send this to a node on the render farm (just to test that it’ll render only that section), but the farm renders the whole image. What can I do?

(this is using the default cube scene)

import bpy
import os

render = bpy.context.scene.render

render.use_border = True
render.use_crop_to_border = False

render.border_min_x = 960/1920
render.border_min_y = 0/1080
render.border_max_x = 1920/1920
render.border_max_y = 540/1080

bpy.ops.render.netclientsendframe()
#bpy.ops.render.render

bpy.ops.render.render
used on local client

bpy.ops.render.netclientsendframe()
used for net render

Or if anyone has another solution to render a single image on multiple computers let me know. I’ve tried Loki Render, but 2.77+ doesn’t support it anymore, just renders black.

It might be worth taking a look at the Python here, which looks interesting:
https://github.com/aluminiumgeek/eager-rendering

In terms of a general distributed render, I have a project that does this (https://gitlab.com/skororu/dtr). I tend to copy over a Python configuration file to the remote host (see _write_blender_python_config() in file dtr_file_io.py) and then execute the render over ssh invoking that Python config using the --python option (see despatch_block() in file dtr.py). I couldn’t find a reliable way of inserting the Python code directly into the .blend file at the time.

There were a few favourite distributed renderers mentioned here a little while back: https://blenderartists.org/forum/showthread.php?392484-Cycles-Distributed-Rendering