diff options
author | Martin Poirier <theeth@yahoo.com> | 2011-12-23 04:35:24 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2011-12-23 04:35:24 +0400 |
commit | 294fe2adf96772d2c67fd098e11c358e055aeb0a (patch) | |
tree | 7bfad7370f9a2e638e243ebf2083cbf3da22bb1e /netrender/slave.py | |
parent | b99dae247e8443668285a375171a48cf9078cb6c (diff) |
netrender
- fix handling of pointcache dependencies on slave (correct repathing) and on client (bad frame dependency range)
- add Force Upload option on master to force dependencies upload and download (don't reuse local copies outside of slave cache)
- add links back to main page on job web page
- client limit dependencies to rendered frame range (it used to add all point cache frames)
Thanks to Philippe Van Hecke for raising the issue by email.
Diffstat (limited to 'netrender/slave.py')
-rw-r--r-- | netrender/slave.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netrender/slave.py b/netrender/slave.py index c7f3a8cb..7e681450 100644 --- a/netrender/slave.py +++ b/netrender/slave.py @@ -77,7 +77,7 @@ def testCancel(conn, job_id, frame_number): return False def testFile(conn, job_id, slave_id, rfile, JOB_PREFIX, main_path=None): - job_full_path = prefixPath(JOB_PREFIX, rfile.filepath, main_path) + job_full_path = prefixPath(JOB_PREFIX, rfile.filepath, main_path, force=rfile.force) found = os.path.exists(job_full_path) @@ -88,11 +88,11 @@ def testFile(conn, job_id, slave_id, rfile, JOB_PREFIX, main_path=None): if not found: print("Found file %s at %s but signature mismatch!" % (rfile.filepath, job_full_path)) os.remove(job_full_path) - job_full_path = prefixPath(JOB_PREFIX, rfile.filepath, main_path, force=True) if not found: # Force prefix path if not found job_full_path = prefixPath(JOB_PREFIX, rfile.filepath, main_path, force=True) + print("Downloading", job_full_path) temp_path = os.path.join(JOB_PREFIX, "slave.temp") with ConnectionContext(): conn.request("GET", fileURL(job_id, rfile.index), headers={"slave-id":slave_id}) |