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

Fixing CI getting stuck #3803

Merged
merged 1 commit into from
Oct 23, 2024
Merged
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
10 changes: 10 additions & 0 deletions src/main/scala/beam/agentsim/agents/ridehail/RideHailAgent.scala
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,16 @@ class RideHailAgent(
if (debugEnabled) outgoingMessages += ev
updateLatestObservedTick(tick)
log.debug("state(RideHailingAgent.Refueling.EndingRefuelSession): {}, Vehicle ID: {}", ev, vehicle.id)
if (_currentTriggerId.isDefined) {
//at some point in the past we forgot to release tick and trigger
val (oldTick, oldTrigger) = releaseTickAndTriggerId()
log.warning(
s"Agent $id has tick $oldTick and trigger $oldTrigger" +
s", while holding $tick and $triggerId; event = {}, sender = {}",
ev,
sender()
)
}
holdTickAndTriggerId(tick, triggerId)
if (currentBeamVehicle.isRideHailCAV)
rideHailManager ! reply
Expand Down