GithubHelp home page GithubHelp logo

forestdussault / olcredmineautomator Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 1.34 MB

:loop: Program to monitor the OLC Redmine instance for automated bioinformatics job requests

License: MIT License

Python 99.41% Perl 0.59%

olcredmineautomator's Introduction

User Guide

User guide available at: https://olc-bioinformatics.github.io/redmine-docs/

Internal Notes

The OLCRedmineAutomator is constantly running on the OLC head node ([email protected]). To access recent output from the production log, type redminelog into the console. Similarly, redminelog-dev will provide output from the development instance.

Production instance: https://redmine.biodiversity.agr.gc.ca/projects/cfia/issues

Development instance: http://192.168.1.2:8080/

Supervisor notes

The automator is controlled through a supervisor on the head node. Configuration scripts for the supervisor can be found at /etc/supervisor/conf.d

Log files for STDERR and STDOUT can be found at the following locations:

  • /var/log/olcredmineautomator.err.log
  • /var/log/olcredmineautomator.out.log

If at any time an update is needed on the supervisor scripts, register the changes with the following commands:

sudo service supervisor restart

To account for intermittent connectivity issues with the Redmine instances, there is a cronjob that regularly restarts the supervisor service. This may be edited on the head node with the following command:

sudo crontab -e

Manual operation

  1. Log into the head node ([email protected])
  2. Activate the virtual environment
    • source /mnt/nas2/redmine/applications/.virtualenvs/OLCRedmineAutomator/bin/activate
  3. Call automation script
    • python /mnt/nas2/redmine/applications/OLCRedmineAutomator/api.py 2> /dev/null
  4. Enjoy Redmine automation

Setup

Running this program requires a settings.py file that is not included in this repository for security. Here's a censored example of settings.py:

API_KEY = 'super_secret'
BIO_REQUESTS_DIR = '/mnt/nas/bio_requests'
AUTOMATOR_KEYWORDS = {
    'strainmash':
        {'memory': 12000, 'n_cpu': 8},
    'autoclark':
        {'memory': 192000, 'n_cpu': 48},
    'diversitree':
        {'memory': 192000, 'n_cpu': 56},
}

olcredmineautomator's People

Contributors

adamkoziol avatar forestdussault avatar lowandrew avatar

Watchers

 avatar  avatar

Forkers

lowandrew

olcredmineautomator's Issues

GeneSeekr rMLST output upload

Output zipfile for GeneSeekr rMLST is giant - the TSV for each isolate is at many MB (see redmine issue 16838). Automator currently tries to upload the entire zipfile to redmine, but our redmine has a 10MB attachment size limit, so things fail.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.