Batch - how to kill one job only

Asked by Giulia Macaro

Hi all,

I'm running 3 simulations in batch (in the same process).
Is it possible to kill 2 of them and to continue to run only one?

I guess that if I use
$ kill PID
it will kill the whole batch simulation, right?

Thanks
Giulia

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Giulia Macaro
Solved:
Last query:
Last reply:
Revision history for this message
Lin Zhang (xtss-0002) said :
#1

Hi, Guilia.

The batch process can be seen in "System Monitor"--a graphic program in kubuntu, and it can be expanded. If you wanna kill the single simulation you can kill the process named "yade-version", which is the branch process of batch process. "JobXX failed" will be displayed in the terminal, and the next simulation will start automatically.

I hope it help.

BTW, is there any way to watch the progress when run simulations in batch mode? I mean, for example, 15% strain is the goal of the simulation, can I see how much does it reach during running in batch mode?

Thanks!

Lin

Revision history for this message
Anton Gladky (gladky-anton) said :
#2

> BTW, is there any way to watch the progress when run simulations in
> batch mode? I mean, for example, 15% strain is the goal of the
> simulation, can I see how much does it reach during running in batch
> mode?

When you start the batch-mode, you see something like:
http://localhost:9080 shows batch summary

It means, that if you type in your web-browser http://localhost:9080,
you will get an information about the current status of your jobs in
batch. If some plots are provided from your script, you can see
"online" those diagrams.

Anton

Revision history for this message
Giulia Macaro (giulia-macaro) said :
#3

It worked, I think. And there is one simulation still running (I can see it from the system monitor).
But now I can't load the http://localhost web page, to check status of the simulation. Is it supposed to be like that?

Thanks
Giulia

Revision history for this message
Anton Gladky (gladky-anton) said :
#4

You should point the port, like that:

http://localhost:9080/

Anton

On Sat, Apr 2, 2011 at 3:13 PM, Giulia Macaro
<email address hidden> wrote:
> Question #151328 on Yade changed:
> https://answers.launchpad.net/yade/+question/151328
>
> Giulia Macaro posted a new comment:
> It worked, I think. And there is one simulation still running (I can see it from the system monitor).
> But now I can't load the http://localhost web page, to check status of the simulation. Is it supposed to be like that?
>
> Thanks
> Giulia
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>

Revision history for this message
Giulia Macaro (giulia-macaro) said :
#5

Yes, I meant http://localhost:9080/
But it couldn't be loaded after I killed 2 of the 3 simulations.
Anyway, the remaining simulation has just finished, and now I have all the plot and data saved.

Thank you
Giulia

Revision history for this message
Anton Gladky (gladky-anton) said :
#6

r2808 adds a "stop" button for every job.

Revision history for this message
Giulia Macaro (giulia-macaro) said :
#7

ok, thank you! I'll try it

Revision history for this message
Yade Guide (yade-guide) said :
#8

Hey there! As an automated bot, I've scanned through some relevant threads and condensed their content for your convenience. Feel free to delve deeper into these topics by clicking on the links provided.

Title: "Resetting and starting simulations from the beginning"
The user encounters issues with Yade 20230525-7264~94b01fd~jammy1 on Ubuntu 22.04.2 LTS when saving and loading data in batch mode simulations. They consider using O.saveTmp() and O.loadTmp(), creating a thread for restart(), or starting from scratch each time with updated parameters. The user's question is resolved by Jan Stránský.
https://answers.launchpad.net/yade/+question/707137

Title: "launch several simulations within one script"
The user needs assistance coordinating multiple simulations with varying boundary conditions from a MASTER session to each Representative Volume Element (RVE). Jan suggests using one script and launching it several times with different Yade sessions, but requires help passing boundary conditions from an external FEM computation into a specific Yade session. O.switchScene() is recommended as a solution.
https://answers.launchpad.net/yade/+question/176993

Title: "OpenMp"
Roxana wants to run her simulation on multiple cores with OpenMp using -j n in the script, wondering if this is all she needs to do. The speed increase with respect to 'n' isn't always monotonic and depends on factors such as the type of YADE simulation and complexity of shapes. Examples can be found in the provided links.
https://answers.launchpad.net/yade/+question/704367