exclude: ["Rakefile", "tmp", "vendor"]
navbar:
+ start:
+ - Getting Started:
+ - start/index.html.textile.liquid
+ - Quickstart:
+ - start/getting_started/firstpipeline.html.textile.liquid
+ - Common Use Cases:
+ - start/getting_started/sharedata.html.textile.liquid
+
userguide:
- Getting Started:
- user/index.html.textile.liquid
- user/tutorials/tutorial-submit-job.html.textile.liquid
- user/topics/tutorial-parallel.html.textile.liquid
- user/topics/arv-docker.html.textile.liquid
+ - Develop a web service:
+ - user/topics/arv-web.html.textile.liquid
- Reference:
- user/topics/run-command.html.textile.liquid
- user/reference/job-pipeline-ref.html.textile.liquid
- sdk/python/sdk-python.html.textile.liquid
- sdk/python/python.html.textile.liquid
- sdk/python/crunch-utility-libraries.html.textile.liquid
+ - sdk/python/events.html.textile.liquid
- Perl:
- sdk/perl/index.html.textile.liquid
- Ruby:
class EventClient(WebSocketClient):
def __init__(self, url, filters, on_event):
- ssl_options = None
- if re.match(r'(?i)^(true|1|yes)$',
- config.get('ARVADOS_API_HOST_INSECURE', 'no')):
- ssl_options={'cert_reqs': ssl.CERT_NONE}
+ # Prefer system's CA certificates (if available)
+ ssl_options = {}
+ certs_path = '/etc/ssl/certs/ca-certificates.crt'
+ if os.path.exists(certs_path):
+ ssl_options['ca_certs'] = certs_path
+ if config.flag_is_true('ARVADOS_API_HOST_INSECURE'):
+ ssl_options['cert_reqs'] = ssl.CERT_NONE
else:
- ssl_options={'cert_reqs': ssl.CERT_REQUIRED}
+ ssl_options['cert_reqs'] = ssl.CERT_REQUIRED
super(EventClient, self).__init__(url, ssl_options=ssl_options)
self.filters = filters
self.on_event = on_event
if poll_fallback:
_logger.warn("Websockets not available, falling back to log table polling")
p = PollClient(api, filters, on_event, poll_fallback)
+ p.daemon = True
p.start()
return p
else: