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

Opened 15 years ago

Last modified 10 years ago

Scripting improvements : api, cli, parse, cluster — at Version 3

Reported by: jamoore Owned by: jmoore
Priority: major Milestone: Unscheduled
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.

Cluster

  • 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
    
  • Going one step further, we could add: bin/omero cluster [mpi|sge|pbs|etc] <file name> -n <nodes> <node variable which would automatically execute the above via the given cluster method.


Change History (3)

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

We're Hiring!