Ok so there is no way to access the galaxy object outside of galaxy? I'm looking for something like the 'trans' variable often seen throughout the Galaxy code base so that I can use sqlalchemy and make a database query.
Thanks for replying.
Katherine

On Fri, Jan 27, 2017 at 5:40 AM, Peter Cock <p.j.a.cock@googlemail.com> wrote:
Hi Katherine,

I don't think Galaxy itself will tell you this, in part because the
details would be dependent on the Cluster being used.

I would do that via whatever cluster management system you are running
(e.g. qstat or qmon if using SGE).

By default all the jobs will be submitted by the Galaxy user account,
but if you are submitting jobs as the individual users then you can
still spot Galaxy jobs via their naming convention (starting "g",
number, underscore, ..., tool name, user's email).

Peter

On Thu, Jan 26, 2017 at 6:58 PM, Katherine Beaulieu
<katherine.beaulieu014@gmail.com> wrote:
> Hi there,
> We are trying to build our own Galaxy cluster and I was wondering if there
> was a way to check if there are any running Galaxy jobs on a specific
> server? This would be to determine whether or not to remove the server from
> the cluster.
> Thanks!
> Katherine
>
> ___________________________________________________________
> 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:
>   https://lists.galaxyproject.org/
>
> To search Galaxy mailing lists use the unified search at:
>   http://galaxyproject.org/search/mailinglists/