| 35 | namespace { |
| 36 | |
| 37 | void TouchSuccessFile(const GraphConfig& config) { |
| 38 | if (config.success_out().empty()) { |
| 39 | DXINFO("'success_out' directory is empty."); |
| 40 | return; |
| 41 | } |
| 42 | |
| 43 | std::string out_file = |
| 44 | config.success_out() + "/_SUCCESS" + std::to_string(config.shard_id()); |
| 45 | DXINFO("Touch 'success_out' file: %s.", out_file.c_str()); |
| 46 | deepx_core::AutoOutputFileStream os; |
| 47 | DXCHECK_THROW(os.Open(out_file)); |
| 48 | os.Close(); |
| 49 | } |
| 50 | |
| 51 | } // namespace |
| 52 |