Skip to content

Commit

Permalink
Decrease jobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Feb 27, 2025
1 parent a6b99ef commit 6e6a0f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/computeCiJobs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ echo ""

data=$(moon query tasks --affected --upstream deep --downstream deep --json)
taskCount=$(echo "$data" | jq '.tasks | length')
taskPerJob=15
taskPerJob=10
jobTotal=1

if [[ $taskCount == 0 ]]; then
jobTotal=0
elif [[ $taskCount -gt 15 ]]; then
elif [[ $taskCount -gt 10 ]]; then
((jobTotal = (taskCount + taskPerJob - 1) / taskPerJob))
fi

Expand Down

0 comments on commit 6e6a0f2

Please # to comment.