« Previous | Next » 

Revision 5c735209

ID5c73520908a113583d7ff61f751a9cc4737a68b7
Parent 3fc175f0
Child 56db8a84

Added by Iustin Pop over 15 years ago

Make WaitForJobChanges deal with long jobs

This patch alters the WaitForJobChanges luxi-RPC call to have a
configurable timeout, so that the call behaves nicely with long jobs
that have no update.

We do this by adding a timeout parameter in the RPC call, and returning
a special constant when the timeout is reached without an update. The
luxi client will repeatedly call the WaitForJobChanges until it gets a
real change. The timeout is hardcoded as half the RWTO value.

The patch also removes an unused variable (new_state) from the
WaitForJobChanges method.

Reviewed-by: imsnah,ultrotter

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences