Hello,
This docker image does not respond to SIGUSR1 signal to cleanly interrrupt code aster run.
For example, I use it WSL.
But when the following command is issued:
pids=$(pgrep -fl python3 | tail -n 4 | awk '{print $1}') && kill -SIGUSR1 $pids
Results are not saved.
The output is something like this
[1,3]<stdout>: ╔════════════════════════════════════════════════════════════════════════════════════════════════╗
[1,3]<stdout>: ║ <I> <SUPERVIS_96> ║
[1,3]<stdout>: ║ ║
[1,3]<stdout>: ║ Réception du signal USR1. Interruption du calcul demandée... ║
[1,3]<stdout>: ║ ║
[1,3]<stdout>: ╚════════════════════════════════════════════════════════════════════════════════════════════════╝
[1,3]<stdout>:
[1,0]<stdout>:
[1,0]<stdout>: EXECUTION_CODE_ASTER_EXIT_35=-10
[1,0]<stdout>:
[1,0]<stdout>:
[1,0]<stdout>:
[1,0]<stdout>: ╔════════════════════════════════════════════════════════════════════════════════════════════════╗
[1,0]<stdout>: ║ <I> <SUPERVIS_96> ║
[1,0]<stdout>: ║ ║
[1,0]<stdout>: ║ Réception du signal USR1. Interruption du calcul demandée... ║
[1,0]<stdout>: ║ ║
[1,0]<stdout>: ╚════════════════════════════════════════════════════════════════════════════════════════════════╝
[1,0]<stdout>:
[1,0]<stdout>: restoring result databases from 'BASE_PREC'...
[1,0]<stdout>: WARNING: execution failed (command file #1): <F>_ABNORMAL_ABORT
[1,0]<stdout>:
[1,0]<stdout>: # ------------------------------------------------------------------------------
[1,0]<stdout>: Content of /tmp/run_aster_z_zqdnfy/proc.0 after execution:
[1,0]<stdout>: .:
[1,0]<stdout>: total 273848
[1,0]<stdout>: -rw-r--r-- 1 user user 392 Apr 6 05:35 35.export
[1,0]<stdout>: drwxr-xr-x 2 user user 4096 Apr 6 05:35 REPE_IN
[1,0]<stdout>: drwxr-xr-x 2 user user 4096 Apr 6 05:35 REPE_OUT
[1,0]<stdout>: -rwxrwxrwx 1 user user 3409379 Apr 5 07:09 fort.20
[1,0]<stdout>: -rw-r--r-- 1 user user 69113 Apr 6 05:38 fort.6
[1,0]<stdout>: -rw-r--r-- 1 user user 0 Apr 6 05:35 fort.8
[1,0]<stdout>: -rw-r--r-- 1 user user 0 Apr 6 05:35 fort.9
[1,0]<stdout>: -rw-r--r-- 1 user user 125337608 Apr 6 05:37 glob.1
[1,0]<stdout>: -rw-r--r-- 1 user user 20955 Apr 6 05:35 stage1.comm.changed.py
[1,0]<stdout>: -rw-r--r-- 1 user user 151552008 Apr 6 05:37 vola.1
[1,0]<stdout>:
[1,0]<stdout>: REPE_OUT:
[1,0]<stdout>: total 0
[1,0]<stdout>:
[1,0]<stdout>:
[1,0]<stdout>: # ------------------------------------------------------------------------------
[1,0]<stdout>: Copying results
[1,0]<stdout>: WARNING: file not found: fort.80
[1,0]<stdout>: copying 'fort.6' to '/home/user/data/stage1.mess'...
[1,0]<stdout>:
[1,0]<stdout>: # ------------------------------------------------------------------------------
[1,0]<stdout>: Execution summary
Please make sure clean interrupt is possible in this image.
Regards
Anirudh