[ome-users] Timeout for server-side scripts

Woodbridge, Mark R m.woodbridge at imperial.ac.uk
Mon Jan 17 11:25:55 GMT 2011


Hi Josh,

Script attached. It's launched from Insight and performs a batch export of a dataset to OME-TIFF files. The bottleneck seems to be the conversion (rather than writing the output to disk) so if this can be achieved more efficiently then perhaps I can avoid the timeout. Obviously a dataset can be arbitrarily big, so one solution might be to create a new session for each image.

There is another potentially related issue - I sometimes see 'Too many open files' on the server when running the script, at which point I have to restart the server.

Obviously the script doesn't yet do things that it should, like checking to see if the files have already been exported.

Mark.
________________________________________
From: Josh Moore [josh.moore at gmx.de]
Sent: 14 January 2011 22:10
To: Woodbridge, Mark R
Cc: ome-users at lists.openmicroscopy.org.uk
Subject: Re: [ome-users] Timeout for server-side scripts

Hi Mark,


On Jan 14, 2011, at 6:28 PM, Woodbridge, Mark R wrote:
> I have a server-side Python script which seems to be timing-out after 10 minutes.

Would it possible for you to share the script or describe what it's doing? How is it being launched? From Insight? Are you repeatedly getting the same stacktrace in the logs which you could send along?

> Is there a way to either specify an increased timeout when calling client.getSession(),

It shouldn't be necessary, but we need to figure out what's going on.

> or to use more than one non-concurrent session in a script?

That's not necessary nor really possible.

> Many thanks,
> Mark.

Cheers,
~Josh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Definiens_Export.py
Type: text/x-python
Size: 1624 bytes
Desc: Definiens_Export.py
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20110117/0dfa3541/attachment.py>


More information about the ome-users mailing list