Upload output files when aborted

Message boards : API : Upload output files when aborted
Message board moderation

To post messages, you must log in.

AuthorMessage
Tomáš Brada

Send message
Joined: 12 Feb 19
Posts: 1
Slovakia
Message 91878 - Posted: 17 Jun 2019, 22:27:44 UTC

Hello boinc developers.
I am trying to make my boinc application to upload the output file when it is aborted by user.
Should this code be enough?
if(boinc_status.abort_request) {
  write_my_output_file();
  boinc_finish(0);
}

I have disabled direct process control and check for exit/abort/suspend request every now and then:
boinc_options_defaults(opts);
opts.direct_process_action = 0; // I handle abort/suspend myself
int retval = boinc_init_options(&opts);

Is this use case supported by current client version? If not, where is the decision made?
ID: 91878 · Report as offensive

Message boards : API : Upload output files when aborted

Copyright © 2021 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.