Posts by Tomáš Brada

1) Message boards : API : Upload output files when aborted (Message 91878)
Posted 17 Jun 2019 by Tomáš Brada
Post:
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?




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.