mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
LWR runner and client remains in Galaxy as is and can continue to target old LWR server. But these should be considered deprecated and will likely be dropped at some point. The LWR documentaiton in job_conf.xml.sample_advanced has been replaced with Pulsar documentation to reflect this. Pulsar runners will need to target a Pulsar server (now with a RESTful web interface - MQ option also available). Information on upgrading an LWR instance to pulsar can be found in the [Pulsar docs](http://pulsar.readthedocs.org/en/latest/#upgrading-from-the-lwr). Three new job runners have been added to replace the LWR runner. The `PulsarLegacyJobRunner` more or less has all of the old defaults that the LWR runner had and this one should be easiest to get working for people who are porting over old LWR servers (and will likely be most compatible with remote Windows hosts). The `PulsarRESTJobRunner` targets a remote Pulsar server over HTTP(S) but has newer standard configuration options such as rewriting parameters at tool stage by default, remote dependency evaluation by default, etc.... The `PulsarMQJobRunner` targets a remote Pulsar server via AMQP - and has the newer defaults of the RESTful runner as well as targetting the Galaxy job files API by default. The `url` runner parameter has been renamed `amqp_url` for clarity. These newer runners improve parameter handling in other ways such as warning deployers when ignored parameters are supplied.
54 lines
1.7 KiB
Python
54 lines
1.7 KiB
Python
from .decorators import parseJson
|
|
|
|
|
|
class ObjectStoreClient(object):
|
|
|
|
def __init__(self, pulsar_interface):
|
|
self.pulsar_interface = pulsar_interface
|
|
|
|
@parseJson()
|
|
def exists(self, **kwds):
|
|
return self._raw_execute("object_store_exists", args=self.__data(**kwds))
|
|
|
|
@parseJson()
|
|
def file_ready(self, **kwds):
|
|
return self._raw_execute("object_store_file_ready", args=self.__data(**kwds))
|
|
|
|
@parseJson()
|
|
def create(self, **kwds):
|
|
return self._raw_execute("object_store_create", args=self.__data(**kwds))
|
|
|
|
@parseJson()
|
|
def empty(self, **kwds):
|
|
return self._raw_execute("object_store_empty", args=self.__data(**kwds))
|
|
|
|
@parseJson()
|
|
def size(self, **kwds):
|
|
return self._raw_execute("object_store_size", args=self.__data(**kwds))
|
|
|
|
@parseJson()
|
|
def delete(self, **kwds):
|
|
return self._raw_execute("object_store_delete", args=self.__data(**kwds))
|
|
|
|
@parseJson()
|
|
def get_data(self, **kwds):
|
|
return self._raw_execute("object_store_get_data", args=self.__data(**kwds))
|
|
|
|
@parseJson()
|
|
def get_filename(self, **kwds):
|
|
return self._raw_execute("object_store_get_filename", args=self.__data(**kwds))
|
|
|
|
@parseJson()
|
|
def update_from_file(self, **kwds):
|
|
return self._raw_execute("object_store_update_from_file", args=self.__data(**kwds))
|
|
|
|
@parseJson()
|
|
def get_store_usage_percent(self):
|
|
return self._raw_execute("object_store_get_store_usage_percent", args={})
|
|
|
|
def __data(self, **kwds):
|
|
return kwds
|
|
|
|
def _raw_execute(self, command, args={}):
|
|
return self.pulsar_interface.execute(command, args, data=None, input_path=None, output_path=None)
|