Trigger pipelines automatically

Installation Forum (Inactive)
Trigger pipelines automatically eva pujadas  2015-08-14 09:09
Status: Closed
 
Is there some way to trigger automatically pipelines (understood as sequences of tasks) when new files are dropped into the configured pipeline directory (e.g. in a pipeline override)?

From your documentation (https://www.labkey.org/wiki/home/Documentation/page.view?name=pipeline) it seems it is possible to automate some tasks like data upload. But when searching about the details in documentation and forums, we could not find how or if that is possible.

Thank your very much for your support,
Eva Pujadas
 
 
Jon (LabKey DevOps) responded:  2015-08-14 14:10
Hi Eva,

Right now, this would have to be done externally via cron script or something similar where it works off of a timer.

Depending on the import you want to do, the following APIs might work as well:

If this is the typical file-based pipeline, you can use the LABKEY.Pipeline.startAnalysis() API.

https://www.labkey.org/download/clientapi_docs/javascript-api/symbols/LABKEY.Pipeline.html#.startAnalysis

If it is an assay import, you can use the LABKEY.Assay.ImportRun() API for some assay types.

If you would like help with setting up a module with a cron job or directory watcher to kick off the pipeline job, please let us know and we can work on setting up a developmental support contract with you.

Regards,

Jon