Like a QLOGIN for a node that uses a specific job id

I have an existing qlogin job like this:

 job-ID prior name user state submit/start at queue ------------------------------------------------------------------------- 3530770 0.50500 QLOGIN jlsmith r 10/15/2012 14:02:07 mri.q@compute-0-29.local 

The above work was sent using the standard qlogin command in linux:

  $ qlogin 

What I want to do is execute another qlogin so that the process runs on the same node with the specified job 3530770 .

The idea is that if it is executed correctly in the top command, I can see the same process as the process represented by the specified job identifier.

Is there any way to do this?

+4
source share
2 answers

Or

 qlogin -lh=compute-0-29.local 

or

 qlogin -q "*@compute-0-29.local" 

The task must be completed.

+10
source

Based on a conversation with some HPC specialists at work and some Google search work on this issue (I also wanted to renew the job ID), this is not realistic if you have already submitted the job. You can qlogin -q <node name> in node again, but you cannot resume work on the shell screen.

If you plan to start a new qlogin task, but would like to resume it in the future, you can use screen to do this.

  • Before writing qlogin on the command line on the node interface, write screen . It should completely clear the terminal screen.

  • Now qlogin and enter your script job interactively.

  • Once your work has started and you want to leave a little, press and hold Cntl while you press A and D. It should be said that your screen has been disconnected and returned to the node interface. If you are qstat now, you should see that your work is running.

  • If you want to resume the job identifier (see the current process on the terminal screen), write screen -r in the node interface. You can again see your current process in the terminal.

Note. If you do this several times, and you accumulate several screens randomly (happens to me every time), when you screen -r you will get several options instead of automatically resuming the one you want. To try each one, type screen -r <name of screen listed> one at a time until you find the one you want (disconnect as described above). To get rid of extra screens, write screen -D -r <name> .

Hope this helps.

+2
source

Source: https://habr.com/ru/post/1489399/


All Articles