JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net
JPPF

The open source
grid computing
solution

 Home   About   Features   Download   Documentation   On Github   Forums 
June 03, 2023, 04:33:13 PM *
Welcome,
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: Jobs interrupted when client goes down?  (Read 1566 times)

edeblois

  • JPPF Padawan
  • *
  • Posts: 4
Jobs interrupted when client goes down?
« on: October 22, 2013, 01:00:39 AM »

I'm getting started with JPPF and noticed that after a client submits a job, and while that job is still executing on a remote node, that if I shut down the client, the job is immediately terminated as well. Is that the expected behavior? Are there alternative configurations that would allow a job to continue processing even if there's network interruption with the client? Thanks!
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: Jobs interrupted when client goes down?
« Reply #1 on: October 22, 2013, 07:09:13 AM »

Hello,

Yes, this is the default behavior: when the server detects that a client is disconnected, it cancels the jobs submiitted by this client.
To change this behavior you need to set the cancelUponClientDisconnect attribute of the job's SLA as follows:
Code: [Select]
JPPFJob myJOb = new JPPFJob();
myJob.getSLA().setCancelUponDisconnect(false);

This feature is also documented here.

I hope this clarifies.

Sincerely,
-Laurent
Logged

edeblois

  • JPPF Padawan
  • *
  • Posts: 4
Re: Jobs interrupted when client goes down?
« Reply #2 on: October 22, 2013, 03:56:05 PM »

That definitely answers it, thank you. And thanks for such an excellent tool!
Logged
Pages: [1]   Go Up
 
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads