This isn't possible right now, but could be added without too much difficulty. 
Take a look at the method Job.prepare in lib/galaxy/jobs/__init__.py - you'd 
want to add the job id to incoming or param_dict variables.

Also note that Galaxy already has links between datasets and jobs in its 
database, so you might look into extending the API to provide the information 
in bulk rather than recording each time a tool is run.

Good luck,
J.


On Aug 20, 2013, at 8:02 AM, Peng Li wrote:

> Hi All
> I am working on one galaxy tool that could output results to database and I 
> want to link the data records with galaxy job table by job id. Is it possible 
> to retrieve the current job id in the tools config or tools code?  
> I read the wikis and manuals and only find one  Deprecated tag <code> has 
> some clues like exec_after_job()?
> Does anyone know how to achieve this?
> Best regards
> -lee
>  
> ___________________________________________________________
> Please keep all replies on the list by using "reply all"
> in your mail client.  To manage your subscriptions to this
> and other Galaxy lists, please use the interface at:
>  http://lists.bx.psu.edu/
> 
> To search Galaxy mailing lists use the unified search at:
>  http://galaxyproject.org/search/mailinglists/

___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  http://lists.bx.psu.edu/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/

Reply via email to