Skip to content

Commit

Permalink
use all available cpu cores by default (hasura#2511)
Browse files Browse the repository at this point in the history
Use all available cores by default. sets -N rts flag by default. Can be disabled by
setting the `GHCRTS` env variable to `-N1`.
  • Loading branch information
0x777 authored and shahidhk committed Jul 12, 2019
1 parent f20b126 commit 66a2f33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ refs:
- run:
name: Run Python tests
environment:
# hpc report seems to fail with the default -N
GHCRTS: -N1
HASURA_GRAPHQL_DATABASE_URL: 'postgres://gql_test:@localhost:5432/gql_test'
HASURA_GRAPHQL_DATABASE_URL_2: 'postgres://gql_test:@localhost:5432/gql_test2'
GRAPHQL_ENGINE: '/build/_server_output/graphql-engine'
Expand Down Expand Up @@ -399,6 +401,7 @@ jobs:
- image: hasura/graphql-engine-console-builder:v0.3
environment:
CYPRESS_KEY: 983be0db-0f19-40cc-bfc4-194fcacd85e1
GHCRTS: -N1
- image: circleci/postgres:10-alpine-postgis
environment:
POSTGRES_USER: gql_test
Expand Down
1 change: 1 addition & 0 deletions server/graphql-engine.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -364,3 +364,4 @@ executable graphql-engine
-Wincomplete-uni-patterns
-Wredundant-constraints
-threaded -rtsopts
-with-rtsopts=-N

0 comments on commit 66a2f33

Please sign in to comment.