SuccessTrigger
SuccessTrigger(success_file, max_attempts)
Callable class which can be used as success_func of a slurmy job. It checks if the success_file is present in the underlying file system, once a second. If the maximum number of attempts are reached without finding the file, it returns FAILED.
success_file
The file which is created if the job is successful.max_attempts
Maximum number of attempts that will be tried to find the success_file.