Cancel running jobs/workflows through API
Hey guys, I know there's no current way of canceling jobs or workflows through the API, but does anyone have any idea on how to implement this in Galaxy? i.e. where in the code base to see how galaxy is currently killing jobs. My ideal solution would be to get the list of qeued jobs for a giving history and call something to kill all running jobs in a history or a way of iterating through all jobs. Any help would greatly appreciated, thanks, Richard
Richard, You can find the code for admin users stopping jobs in lib/galaxy/web/base/controllers/admin.py, in the jobs method of the Admin class. Hopefully that will provide the base structure for what you want to accomplish. --Dave B. On 3/27/13 12:02:20.000, Richard Park wrote:
Hey guys, I know there's no current way of canceling jobs or workflows through the API, but does anyone have any idea on how to implement this in Galaxy? i.e. where in the code base to see how galaxy is currently killing jobs.
My ideal solution would be to get the list of qeued jobs for a giving history and call something to kill all running jobs in a history or a way of iterating through all jobs. Any help would greatly appreciated, thanks, Richard
___________________________________________________________ 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/
Hi Dave, Thanks for the pointer. Do you have any idea how I could associate a specific user or history with the pids? Thanks, Richard On Thu, Mar 28, 2013 at 8:54 AM, Dave Bouvier <dave@bx.psu.edu> wrote:
Richard,
You can find the code for admin users stopping jobs in lib/galaxy/web/base/ **controllers/admin.py, in the jobs method of the Admin class. Hopefully that will provide the base structure for what you want to accomplish.
--Dave B.
On 3/27/13 12:02:20.000, Richard Park wrote:
Hey guys, I know there's no current way of canceling jobs or workflows through the API, but does anyone have any idea on how to implement this in Galaxy? i.e. where in the code base to see how galaxy is currently killing jobs.
My ideal solution would be to get the list of qeued jobs for a giving history and call something to kill all running jobs in a history or a way of iterating through all jobs. Any help would greatly appreciated, thanks, Richard
______________________________**_____________________________ 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/<http://galaxyproject.org/search/mailinglists/>
participants (2)
-
Dave Bouvier
-
Richard Park