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 
December 13, 2019, 04:18:54 AM *
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: No run node timeout ERROR  (Read 2161 times)

jherrerah

  • JPPF Padawan
  • *
  • Posts: 2
No run node timeout ERROR
« on: October 31, 2011, 10:42:30 AM »

When I schedule a task and the node that runs it has a problem that makes the task can not be terminated except for the time limit is triggered, according to the millisecond that are programmed and can perform some task to correct this problem. When the task is not any node to execute the task remains in a state undertakes no indefinitely. You can capture any exception in this case?
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2258
    • JPPF Web site
Re: No run node timeout ERROR
« Reply #1 on: November 04, 2011, 07:37:04 AM »

Hello,

I am not sure I understand the problem you are describing, would you mind elaborating?
Here is what I understand, please feel free to correct me when needed:
- you submitted a task, and while this task was running, the ode on which it was running had a problem. Can you tell us what that problem was?
- you are talking about a time limit that was triggered, so I'm assuming you set a task timeout using JPPFTask.setTimeout(...) or something equivalent, is this correct? If yes, I'm also assuming you implemented the onTimeout() method in your task, can you confirm as well?
- the main problem is what happens to a task when it is not executing in a node, and there is no node to execute it? In this case, I would recommend to set a timeout on the job that contains the task, so the job will be cancelled when the timeout expires, and it won't remain indefinitely hanging.

Does this answer your question?

Sincerely,
-Laurent
Logged

jherrerah

  • JPPF Padawan
  • *
  • Posts: 2
Re: No run node timeout ERROR
« Reply #2 on: November 07, 2011, 05:37:13 PM »

Hello Laurent.

The thrid option is correct. Some task must be run in a especific node. If the node is not up, the task wait until timeout on the job. After reading the chapter "Job start and expiration scheduling" I coded a job that expire after some seconds. Everything works fine.

There is a method like JPPFTask.onTimeout() for jobs like JPPFJob.onTimeout() that implement a error handling rutine? If SLA expiration time end, how I can capture it? Some exception raise or  Return null values? I am using null values verification, is that correct?

thanks for the help
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