...Another cause is the <platform> tag which I erroneously put in early versions of the CUDA app_info.xml - if you still have that, it should come out....
Then you have something wrong with your setup. I've lost about three or four tasks, in total, over several machines and several years.
I run a script which checks first to see how many VLAR tasks (and optionally VHAR tasks) are in the CUDA queue, and how close they are to the head of that queue. If nothing nasty is likely to happen in the near future, it doesn't bother with the stop/restart cycle - so I can run it as often as I like (every 6 hours seems plenty). Maybe you could think about something like that?
Now that is interesting, how do you determine the "index" of a unit in the queue? And how you determine you end up in the "danger zone". If that could be done automaticly that would be sweet.
@ everybody else: 16 downloads already - we have a lot of budding developers lurking silently in our midst But remember, the instructions are in Fred's file, and you will get NO SUPPORT unless you contribute to the development effort.
..... except that by then, it won't be needed, of course.
@ Marius: yes, I think the jobs are listed in client_state in the order they're assigned by the server (i.e. the order you see them in BOINC Manager if you don't have any column sorting in operation)