Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toolforge/grid-jobs
Mirror of https://phabricator.wikimedia.org/source/tool-grid-jobs/
https://github.com/toolforge/grid-jobs
mirror toolforge
Last synced: about 2 months ago
JSON representation
Mirror of https://phabricator.wikimedia.org/source/tool-grid-jobs/
- Host: GitHub
- URL: https://github.com/toolforge/grid-jobs
- Owner: toolforge
- License: gpl-3.0
- Created: 2017-10-28T22:41:13.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-19T12:28:49.000Z (about 1 year ago)
- Last Synced: 2024-04-14T03:10:21.211Z (9 months ago)
- Topics: mirror, toolforge
- Language: Python
- Homepage: https://sge-jobs.toolforge.org/
- Size: 96.7 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
sge-jobs
========List tools running on Toolforge Son of Grid Engine exec nodes.
Install
-------Clone repo and create basic files:
```
bastion$ become sge-jobs
tools.sge-jobs@bastion:~$ mkdir -p ~/www/python
tools.sge-jobs@bastion:~$ git clone https://phabricator.wikimedia.org/source/tool-grid-jobs.git ~/www/python/src
```Create virtualenv inside kubernetes:
```
tools.sge-jobs@bastion:~$ webservice --backend=kubernetes python shell
tools.sge-jobs@interactive:~$ python3 -m venv ~/www/python/venv
tools.sge-jobs@interactive:~$ source ~/www/python/venv/bin/activate
(venv)tools.sge-jobs@interactive:~$ pip install -U pip
(venv)tools.sge-jobs@interactive:~$ pip install -r ~/www/python/src/requirements.txt
```Back to bastion, start the webservice:
```
tools.sge-jobs@bastion:~$ webservice --backend=kubernetes python start
```Creating the list is pretty expensive and we don't need it to be a real time
display, so a nice thing to do is setup a cron job to collect new data once an
hour:
```
21 * * * * jstart -N update-cache curl 'https://tools.wmflabs.org/sge-jobs/?purge'
```License
-------
[GNU GPLv3+](//www.gnu.org/copyleft/gpl.html "GNU GPLv3+")Forked from
[precise-tools](https://phabricator.wikimedia.org/source/tool-precise-tools/)