From 110bbb02892911796b2f0e6a7c3562cc0fe6e5d5 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Tue, 8 Jul 2014 14:51:18 -0400 Subject: [PATCH] Actually use the resume cache --- crunch_scripts/run-command | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crunch_scripts/run-command b/crunch_scripts/run-command index 6359ee6032..e6ec889bbc 100755 --- a/crunch_scripts/run-command +++ b/crunch_scripts/run-command @@ -49,7 +49,7 @@ subst.default_subs["node.cores"] = sub_cores rcode = 1 def machine_progress(bytes_written, bytes_expected): - return "run-command: {} written {} total\n".format( + return "run-command: wrote {} total {}\n".format( bytes_written, -1 if (bytes_expected is None) else bytes_expected) class SigHandler(object): @@ -113,7 +113,7 @@ reporter = put.progress_writer(machine_progress) bytes_expected = put.expected_bytes_for(".") while not done: try: - out = put.ArvPutCollectionWriter(resume_cache, reporter, bytes_expected) + out = put.ArvPutCollectionWriter.from_cache(resume_cache, reporter, bytes_expected) out.do_queued_work() out.write_directory_tree(".", max_manifest_depth=0) outuuid = out.finish() -- 2.39.5