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"

User Story #1341 (closed)

Opened 15 years ago

Closed 10 years ago

Scripting improvements : api, cli, parse

Reported by: jamoore Owned by: jamoore
Priority: major Milestone: 5.0.0-rc1
Component: Scripting Keywords: n.a.
Cc: spli, bpindelski, wmoore, jburel Story Points: n.a.
Sprint: n.a. Importance: n.a.
Total Remaining Time: 8.0d Estimated Remaining Time: n.a.

Description (last modified by jmoore)

Several ideas which may be of general use:

Parsing

  • on uploadScript or at the very latest after the first use of any script, the JobParams should be cached and saved as an OriginalFile with Format = "JobParam?" (or similar).
  • submit() should fail if it doesn't provide the necessary inputs. There might need to be both soft & hard requirements.
  • Script writers should be encouraged to start their script as early as possible with "client = omero.scripts.client(...)" (even before other imports) to make the parsing more robust. Other methods may be needed

CLI

  • bin/omero scripts run <file> should start up a Processor instance and pass it to the new method ServiceFactory.useProcessor(processorPrx)->InteractiveProcessorPrx. This would simulate a true deployment. See #983
  • Using the bin/omero scripts run method, it's possible without any icegridnode processes running on a cluster to do:
      bin/omero load<<EOF
      login -s <session-uuid>
      scripts run <file name>
    EOF
    

Change History (14)

comment:1 Changed 15 years ago by jmoore

  • Description modified (diff)

comment:2 Changed 15 years ago by jmoore

  • Owner changed from dzmacdonald to jmoore

comment:3 Changed 15 years ago by jmoore

  • Description modified (diff)

comment:4 Changed 14 years ago by jmoore

  • Description modified (diff)

comment:5 Changed 14 years ago by jmoore

  • Description modified (diff)

comment:6 Changed 14 years ago by jmoore

  • Sprint set to 2010-02-19 (3)

comment:7 Changed 14 years ago by wmoore

  • Sprint changed from 2010-02-19 (3) to 2010-03-05 (4)

comment:8 Changed 14 years ago by cxallan

  • Sprint 2010-03-05 (4) deleted

comment:9 Changed 14 years ago by jmoore

(In [6814]) Various fixes to have scripting running again. See #1341, #2304, #2261, #2253

comment:10 Changed 14 years ago by jmoore

(In [6820]) see #1341 - useDefault for prototype usage and o.s.Type subclass o.g.Param

comment:11 Changed 14 years ago by jmoore

(In [6822]) see #1341 - Fixing OmeroScripts tests

comment:12 Changed 14 years ago by jmoore

(In [6839]) see #1341 - Unifying official script names

comment:13 Changed 11 years ago by jmoore

  • Cc spli bpindelski wmoore jburel added; dzmacdonald removed

Remaining content from this story should likely be moved to one or more (new?) stories, and this closed.

comment:14 Changed 10 years ago by jamoore

  • Milestone changed from Unscheduled to 5.0.0-beta2
  • Resolution set to fixed
  • Status changed from new to closed
  • Summary changed from Scripting improvements : api, cli, parse, cluster to Scripting improvements : api, cli, parse

With several dozen closed tickets, closing this in favor of #1860.

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.186768 sec.)

We're Hiring!