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 #10345 (new)

Opened 11 years ago

Last modified 11 years ago

Scripting gotchas

Reported by: spli Owned by: spli
Priority: minor Milestone: GatherReqs
Component: Scripting Version: n.a.
Keywords: n.a. Cc: analysis@…, hflynn
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

A few of things I've wasted time on whilst trying to get PyChrm working via OMERO.scripts. Maybe this should go into the docs at some point?

  • Multiple script files: not possible (#10079). The script is copied into a temp directory so can't import stuff from the same directory
  • Script timeouts: If a script runs for too long without contacting the server the session will timeout- use client.enableKeepAlive()
  • Out of memory: If a script uses too much memory the OS may kill the process. OMERO reports the script as finishing successfully (Callback received: FINISHED).
  • Disconnecting after starting a script: not supported (script seems to run for a few minutes then is killed).

Change History (2)

comment:1 Changed 11 years ago by jmoore

  • Script timeouts: we should likely enable that by default. My assumption would have been that processor.py would keep it alive
  • Out of memory: does that not return a non-null pid? Odd. Definitely of bug quality.
  • Disconnecting: also unexpected and should be a bug.

comment:2 Changed 11 years ago by jburel

  • Cc hflynn added
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.65924 sec.)

We're Hiring!