Evolution of repository
- name: Install EvoRepo API
hosts: frontend*
sudo: false
vars:
anaconda_dir: "~{{ansible_user_id}}/anaconda"
tasks:
- name: Get Miniconda install script
get_url:
url: http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
dest: /tmp/Miniconda-latest-Linux-x86_64.sh
- name: Install Miniconda
shell: "bash /tmp/Miniconda-latest-Linux-x86_64.sh -b -p {{anaconda_dir}}"
args:
creates: "{{anaconda_dir}}/bin/conda"
- name: Install bcbio_vm
shell: "{{anaconda_dir}}/bin/conda install --yes evorepo --channels evorepo"
#!/bin/bash -l
#SBATCH --job-name=compute-repo
#SBATCH --output=slurm.out
#SBATCH --error=slurm.err
#SBATCH --partition=evorepo
evorepo compute-repo openstack
#!/bin/bash -l
#SBATCH --job-name=sparqk-query
#SBATCH --output=slurm.out
#SBATCH --error=slurm.err
#SBATCH --partition=query
evorepo sparql-worker run query-1337
import jarvis
class BadContributor(object):
def __init__(self, name):
self._supervisor = jarvis.Supervisor()
self._supervisor.start()
self._name = name
self._contribuitor = None
@property
def contribuitor(self):
if not self._contribuitor:
self._contribuitor = jarvis.Contribuitor(id=name)
return self._contribuitor
def work(self):
for repo in jarvis.Repository(contribuitor=self._contribuitor):
changes = jarvis.async_changes(contribuitor=alex, repo=repo)
self._supervisor.bind(changes.on_change, self._process_change)