Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix (#111) and Code Cleanup #112

Merged
merged 4 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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