| 183 | |
| 184 | Each node has it's own time limit for jobs that are being run from the queue, but they tend to be 10 or 30 days. |
| 185 | You can find the time limit of each node by entering on Discovery: |
| 186 | {{{ |
| 187 | #!sh |
| 188 | sinfo |
| 189 | }}} |
| 190 | If you are running something interactively on Discovery, there may be a credential limit for the DartFS system of 10 hours. |
| 191 | Read more here: [[https://services.dartmouth.edu/TDClient/1806/Portal/KB/ArticleDet?ID=76691]] |
| 192 | |
| 193 | Now if you want to check the status of your job and the node you are using, type in the bash with the Discovery session: |
| 194 | {{{ |
| 195 | #!sh |
| 196 | squeue -u username |
| 197 | }}} |
| 198 | |
| 199 | You can delete your job manually by typing: |
| 200 | |
| 201 | {{{ |
| 202 | #!sh |
| 203 | scancel JOBID |
| 204 | }}} |
| 205 | |
| 206 | where `JOBID` is the ID of your job (indicated in the Matlab session). Matlab indicates too the directory of your job where you can find the files `JOBNAME.outlog` and `JOBNAME.errlog`. The outlog file contains the information that would appear if you were running your job on your local machine and the errlog file contains the error information in case the job encounters an error. |
| 207 | |
| 208 | If you want to load results from the cluster manually (for example if you have an error due to an internet interruption), you find in the information Matlab gave you `$ISSM_DIR/execution/LAUNCHSTRING/JOBNAME.lock`, you copy the LAUNCHSTRING and you type in Matlab: |
| 209 | |
| 210 | {{{ |
| 211 | #!m |
| 212 | md=loadresultsfromcluster(md,'LAUNCHSTRING','JOBNAME'); |
| 213 | }}} |
| 214 | |
| 215 | Obs.: in the case where `md.settings.waitonlock`>0 and you need to load manually (e.g., internet interruption), it is necessary to set `md.private.runtimename=LAUNCHSTRING;` before calling `loadresultsfromcluster`. |
| 216 | |
| 217 | |
| 218 | == Other notes about running on Discovery == |
228 | | If you want to load results from the cluster manually (for example if you have an error due to an internet interruption), you find in the information Matlab gave you `$ISSM_DIR/execution/LAUNCHSTRING/JOBNAME.lock`, you copy the LAUNCHSTRING and you type in Matlab: |
229 | | |
230 | | {{{ |
231 | | #!m |
232 | | md=loadresultsfromcluster(md,'LAUNCHSTRING','JOBNAME'); |
233 | | }}} |
234 | | |
235 | | Obs.: in the case where `md.settings.waitonlock`>0 and you need to load manually (e.g., internet interruption), it is necessary to set `md.private.runtimename=LAUNCHSTRING;` before calling `loadresultsfromcluster`. |
| 244 | If your job is in the queue for a long time, there may be several reasons for this. One thing to try is to add the following line to your `<run_name>.queue` file and restarting your job: |
| 245 | {{{ |
| 246 | #!sh |
| 247 | #SBATCH --partition preemptable |
| 248 | }}} |
| 249 | This may give you access to some idle nodes, but note that your job can be stopped if a higher priority job wants your resources. |
| 250 | |