Message boards : Server programs : How to catch project reset?
Message board moderation
Author | Message |
---|---|
Send message Joined: 5 Mar 07 Posts: 7 |
Parsing scheduler request: if ((d_boinc_used_project == 0) & (rpc_seqno > 0)) { Log.project_reset(hostid, user_name, platform_name); } That's right? *and would like also to catch "remove project". |
Send message Joined: 4 Jul 12 Posts: 321 |
What do you want to achieve? Do you want to detect if a host was reset by the user? I'm not sure if all Clients behave the same way or if the request looks like a project attach to the server. It's possible the reset is different becaue it already sends a hostid which is in the DB. The "remove project" is something you can't detect on the server because there is no communication from the client at this step. |
Send message Joined: 5 Mar 07 Posts: 7 |
Thank. Do you want to detect if a host was reset by the user? I want to detect if project was reset by clicking "Reset project" on Boinc Manager. What do you want to achieve? UPDATE Results set exit_code = ERR_ABORTED_BY_USER, received_time = @now, .. where hostid=@host_reset The "remove project" is something you can't detect on the server because there is no communication from the client at this step. Ok. In that case server will wait report_deadline for results not received from host. :( |
Send message Joined: 5 Oct 06 Posts: 5130 |
I don't think the act of clicking 'reset project' is automatically communicated to the server, either - you would probably first see the next request for work, with no application versions or tasks in progress. |
Send message Joined: 5 Mar 07 Posts: 7 |
you would probably first see the next request for work, with no application versions or tasks in progress. Thank you, I'll see what happens while dont_sent_work = 1 and project reset. |
Send message Joined: 4 Jul 12 Posts: 321 |
Thank. Keep in mind that this is the opposite of the resend lost work mechanism that resends tasks after a project reset at the host. You should take a look at authenticate_user() how this host recognition works. You also need to find out how the three types of requests differ from each other. With the three types I mean the first scheduler request after: nely installing the client on a new host, reattaching after detaching the project and the first work request after resetting a project. In theory you have to check if this behavior changes in older Clients. Chances are that the current behavior is consistent for the 7.4 and 7.6 Client versions. |
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.