Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #9168 (new)

Opened 12 years ago

Last modified 8 years ago

RFE: permit immediate detachOnDestroy setting. — at Initial Version

Reported by: jamoore Owned by:
Priority: major Milestone: OMERO-Beta4.4
Component: API Version: n.a.
Keywords: n.a. Cc: cxallan, cneves, jburel, wmoore
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

See #8812

A race condition exists between the time when createSession() has been successfully called and detachOnDestroy() can be called on the returned object. If anything happens in that period (network issue, out of memory, out of file handles, etc), then when the session is closed by glacier (usually 10) minutes later, the session may be closed completely.

Clients should be able to pass {"omero.detach_on_destroy":"true"} (or similar) during the call to createSession in order to set the flag server-side immediately. A helper method and/or optional argument in each SDK should make this easy to implement:

  def createSession(self, username, password, detach=False):

Change History (0)

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.68462 sec.)

We're Hiring!