Skip to content
Snippets Groups Projects

Draft: Time out feature

Open Louison Fresnais requested to merge TimeOut_feature into develop

Problem: GSAM and particularly the code calling RDT remained blocked because of some reactions resulting in several days of computing without any results.

Solution: I modified ComputeGSAM.java to add a timeout.

To do so I created a void called "perform_aam" that performs the atom mapping step. This void is converted to a callable task and called for each entry of rxnSmilesMap. If the executor cannot get the results from the thread before a defined time (default = 6hours) set by the user with the parameter -t, the task is killed and the failed reaction is displayed in the log.

This is a quick and dirty solution. I think the optimal solution would be to define timers directly in RDT and for each algorithm.

Cheers,

Louison

Edited by Clement Frainay

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading