Skip to content

Commit

Permalink
Merge pull request #112 from ubc-cirrus-lab/tests
Browse files Browse the repository at this point in the history
Bug fix (#111) and Code Cleanup
  • Loading branch information
engshahrad authored Oct 25, 2023
2 parents 2ab2478 + 73eee21 commit 95f2e24
Show file tree
Hide file tree
Showing 8 changed files with 596 additions and 519 deletions.
2 changes: 1 addition & 1 deletion initialDeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ python3 scheduler/resetLastDecisions.py $workflow $hostcount $solvingMode
# initialize Julia Solver
mkfifo ./scheduler/juliaStdin
mkfifo ./scheduler/juliaStdout
julia scheduler/rpsMultiVMSolver.jl &
julia scheduler/rpsMultiHostSolver.jl &

# clean the host execution agent queue
python3 host-agents/execution-agent/cleanup-queue.py vmSubscriber1 vm0
Expand Down
2 changes: 1 addition & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

mkfifo ./scheduler/juliaStdin
mkfifo ./scheduler/juliaStdout
julia ./scheduler/rpsMultiVMSolver.jl &
julia ./scheduler/rpsMultiHostSolver.jl &

cp -a ./tests/solver/data/. ./scheduler/data/
cp -a ./tests/logCollector/. ./log-parser/get-workflow-logs/data/
Expand Down
9 changes: 6 additions & 3 deletions scheduler/rpsCIScheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import datetime
from pathlib import Path
from google.cloud import datastore
from rpsMultiVMSolver import rpsOffloadingSolver
from rpsMultiHostSolver import rpsOffloadingSolver
from Estimator import Estimator
from getInvocationRate import InvocationRate
import sys
Expand Down Expand Up @@ -304,13 +304,16 @@ def resolveOffloadingSolutions(self):
triggerType = "resolve"
checkingFlag = True
logging.info("Forced to change to resolve!!!")
print("LOCK CREATED!!!")
pid = os.getpid()
logging.info(str(pid))
logging.info("LOCK CREATED!!!")
logging.info(str(datetime.datetime.now()))
# triggerType = "resolve"
solver = CIScheduler(triggerType)
try:
solver = CIScheduler(triggerType)
except:
logging.info("Scheduler failed to run!")
print("ERROR: Scheduler failed to run!")
os.remove(str(Path(os.path.dirname(os.path.abspath(__file__)))) + "/lock.txt")
if (
os.path.exists(
Expand Down
File renamed without changes.
Loading

0 comments on commit 95f2e24

Please sign in to comment.