Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.
AmsterdamPublic archive

About

Central GOB component responsable for routing, GOB

Topics

Resources

Code of conduct

Security policy

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

329 Commits

Folders and files

Repository files navigation

GOB-Workflow

GOB Workflow is the central component within GOB.

GOB Workflow subscribes to all relevant queues and is responsible for routing received messages according to the defined workflows:

  • subscribe to log messages and store the messages in the management database
  • subscribe to workflow messages, inspect the message and route it further

Infrastructure

A running GOB infrastructure is required to run this component.

Docker

Requirements

  • docker compose >= 1.25
  • Docker CE >= 18.09

Run

docker compose build
docker compose up -d

Workflow commands

docker compose run --rm gobworkflow python -m gobworkflow.start -h

Tests

docker compose -f src/.jenkins/test/docker-compose.yml build
docker compose -f src/.jenkins/test/docker-compose.yml run --rm test

Local

Requirements

  • Python >= 3.9

Initialisation

Create a virtual environment:

python3 -m venv venv
source venv/bin/activate
pip install -r src/requirements.txt

Or activate the previously created virtual environment:

source venv/bin/activate

Run

Start the service:

cd src
python -m gobworkflow --migrate
python -m gobworkflow

Workflow commands to trigger jobs

python -m gobworkflow.start -h

Tests

Run the tests:

cd src
sh test.sh

Workflow commands

Workflow commands that do not rely on secure data sources are for example:

... import test_catalogue test_entity ADD
... export test_catalogue test_entity File
... relate test_catalogue

About

Central GOB component responsable for routing, GOB

Topics

Resources

Code of conduct

Security policy

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages