Skip to content

Commit

Permalink
Stop concurrent operation
Browse files Browse the repository at this point in the history
  • Loading branch information
WillGibson committed Nov 16, 2024
1 parent f5fc65e commit 4ad17ef
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 40 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/python-mutation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,38 +37,38 @@ jobs:
- name: Run mutation tests
run: |
mkdir cosmic-ray-worker1
cp -R ./dbt_platform_helper cosmic-ray-worker1
cp -R ./tests cosmic-ray-worker1
ls cosmic-ray-worker1
mkdir cosmic-ray-worker2
cp -R ./dbt_platform_helper cosmic-ray-worker2
cp -R ./tests cosmic-ray-worker2
ls cosmic-ray-worker2
mkdir cosmic-ray-worker3
cp -R ./dbt_platform_helper cosmic-ray-worker3
cp -R ./tests cosmic-ray-worker3
ls cosmic-ray-worker3
mkdir cosmic-ray-worker4
cp -R ./dbt_platform_helper cosmic-ray-worker4
cp -R ./tests cosmic-ray-worker4
ls cosmic-ray-worker4
cd cosmic-ray-worker1
cosmic-ray --verbosity INFO http-worker --port 9876 > /dev/null 2>&1 &
cd ../
echo "Started worker1"
cd cosmic-ray-worker2
cosmic-ray --verbosity INFO http-worker --port 9877 > /dev/null 2>&1 &
cd ../
echo "Started worker2"
cd cosmic-ray-worker3
cosmic-ray --verbosity INFO http-worker --port 9878 > /dev/null 2>&1 &
cd ../
echo "Started worker3"
cd cosmic-ray-worker4
cosmic-ray --verbosity INFO http-worker --port 9879 > /dev/null 2>&1 &
cd ../
echo "Started worker4"
# mkdir cosmic-ray-worker1
# cp -R ./dbt_platform_helper cosmic-ray-worker1
# cp -R ./tests cosmic-ray-worker1
# ls cosmic-ray-worker1
# mkdir cosmic-ray-worker2
# cp -R ./dbt_platform_helper cosmic-ray-worker2
# cp -R ./tests cosmic-ray-worker2
# ls cosmic-ray-worker2
# mkdir cosmic-ray-worker3
# cp -R ./dbt_platform_helper cosmic-ray-worker3
# cp -R ./tests cosmic-ray-worker3
# ls cosmic-ray-worker3
# mkdir cosmic-ray-worker4
# cp -R ./dbt_platform_helper cosmic-ray-worker4
# cp -R ./tests cosmic-ray-worker4
# ls cosmic-ray-worker4
# cd cosmic-ray-worker1
# cosmic-ray --verbosity INFO http-worker --port 9876 > /dev/null 2>&1 &
# cd ../
# echo "Started worker1"
# cd cosmic-ray-worker2
# cosmic-ray --verbosity INFO http-worker --port 9877 > /dev/null 2>&1 &
# cd ../
# echo "Started worker2"
# cd cosmic-ray-worker3
# cosmic-ray --verbosity INFO http-worker --port 9878 > /dev/null 2>&1 &
# cd ../
# echo "Started worker3"
# cd cosmic-ray-worker4
# cosmic-ray --verbosity INFO http-worker --port 9879 > /dev/null 2>&1 &
# cd ../
# echo "Started worker4"
poetry run cosmic-ray init cosmic-ray.toml cosmic-ray.sqlite --force
echo "Initialised"
poetry run cosmic-ray --verbosity INFO exec cosmic-ray.toml cosmic-ray.sqlite
Expand Down
17 changes: 9 additions & 8 deletions cosmic-ray.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ excluded-modules = [
test-command = "poetry run pytest"

[cosmic-ray.distributor]
name = "http"
name = "local"
# name = "http"

[cosmic-ray.distributor.http]
worker-urls = [
"http://localhost:9876",
"http://localhost:9877",
"http://localhost:9878",
"http://localhost:9879"
]
# [cosmic-ray.distributor.http]
# worker-urls = [
# "http://localhost:9876",
# "http://localhost:9877",
# "http://localhost:9878",
# "http://localhost:9879"
# ]

0 comments on commit 4ad17ef

Please sign in to comment.