Changeset - 758c9f90c884
[Not reviewed]
default
0 1 0
ethanzonca - 16 years ago 2009-08-03 22:20:56

Removed erroring sludge
1 file changed with 0 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/server/slave.c
Show inline comments
 
@@ -166,30 +166,29 @@ char *pathtoJobfile; // Full path to the
 
		system(tarcmd);
 
		free(tarcmd);
 

	
 
		// exec_blender(blendjob, pathtoJobfile, pathtoOutput, framenum); // So this should grab data from the struct? I have no idea. @TODO: Ohnobinki, we should clear this up.
 

	
 
		// Consider placing the following in the exec_blender() function
 
			while(busy == 1){
 
				tell_the_server(DISTREN_REQUEST_PROGRESS);
 
				fprintf(stderr, "Rendering frame %d in job %d...",framenum,jobnum);
 
				sleep(5); // or not... this should be more event-driven, but should still give a heartbeat to the server
 
			}
 
			busy = 2;
 

	
 
		busy=1; // When done rendering, set this.
 
	}
 
	// When blender is finished, run this...
 
	if(busy==2){
 
		fprintf(stderr, "Finished frame %d in job %d, uploading...",framenum,jobnum);
 
		char *outputurl;
 
		_distren_asprintf(&outputurl, "http://protofusion.org/distren/stor/job%d/",jobnum); // Throws the jobnum nicely in the string
 
		curlpost(pathtoOutput, urltoOutput); // posts the output at outputpath to the server at outputurl
 
		tell_the_server(DISTREN_REQUEST_DONEFRAME); // AKA "I'm done rendering that frame you sent me"
 
		busy=0;
 
		// Slave now becomes idle, doesn't need to tell the server anything, ssh handles this.
 
		jobnum =
 
	}
 

	
 

	
 
  return 0;
 
}
0 comments (0 inline, 0 general)