Message boards : Server programs : upload results doesn't trigger function assimilate_handler()
Message board moderation
Author | Message |
---|---|
Send message Joined: 3 Jun 08 Posts: 40 |
I am testing app 'uppercase' and try to hook the upload results inside assimlator_handler yet it seems to be blind to the results. The client did upload the results successfully. I add some useless code inside the function to see whether boinc trigger this function, yet it didn't. The assimilator is running well. The code i add is as below: int assimilate_handler( WORKUNIT& wu, vector<RESULT>& /*results*/, RESULT& canonical_result ) { // -------test started char test[256]="../error.txt"; int temp=write_error(test); if(temp) { perror("create file failed"); } //--------test finished -------------- ------------- } Also I checked the log of the assimilator but it has no information recorded after the daemon started. I have some guesses on reasons for the problem: 1. The upload results is not qualified for trigger the function. 2. I disabled this function. 3. I don't have the permission (yet I use 'chmod 777' to all folders inside project directory, which should be good enough'. Does anyone meet this before? Or could anyone give me some testing code or idea for how-to debug this assimilator? Or may be to enable the trigger if it is disabled. Any idea is appreciated. |
Send message Joined: 3 Jun 08 Posts: 40 |
Thanks for those concern the post. I add sample_trival_assimilator to config.xml and fix the problem. It is mentioned in unofficial wiki that a validator would create canonical results which would be used in an assimilator. I think they have to run at the same time. This seems not be documented officially in boinc website. Also one interesting thing was that when I didn't add validator to the application before, the assimilaor did run randomly to report error log (maybe 1 out of 10 tries). I don't know whether it is a bug or not. Hope this helps the newcomers |
Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.