Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integrated-scheduling-v3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张晓彤
integrated-scheduling-v3
Commits
79ec12f7
Commit
79ec12f7
authored
Nov 09, 2022
by
张晓彤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异常捕获优化
parent
52f07aa5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
dispatcher.py
core/dispatcher.py
+7
-3
group.py
core/group.py
+5
-0
No files found.
core/dispatcher.py
View file @
79ec12f7
...
...
@@ -73,8 +73,7 @@ class Dispatcher:
Group dispatching logic.
:return:
"""
a
=
len
(
self
.
group_list
)
aa
=
self
.
group_list
for
group
in
self
.
group_list
.
values
():
try
:
...
...
@@ -83,7 +82,9 @@ class Dispatcher:
except
Exception
as
es
:
self
.
logger
.
error
(
es
)
self
.
logger
.
error
(
f
'分组{group.group_id} 调度异常'
)
self
.
logger
.
error
(
f
'分组 {group.group_id} 调度异常'
)
try
:
self
.
logger
.
info
(
f
'调度分组: {group.group_id} {DispatchInfo.group_name[group.group_id]}'
)
self
.
logger
.
info
(
"组内挖机"
)
...
...
@@ -92,6 +93,9 @@ class Dispatcher:
self
.
logger
.
info
(
group
.
dump
)
self
.
submission
.
group_dispatch_to_redis
(
group
,
truck_dispatch_plan_dict
)
except
Exception
as
es
:
self
.
logger
.
error
(
es
)
class
DispatchSubmission
:
""" class for the submission calculated dispatch.
...
...
core/group.py
View file @
79ec12f7
...
...
@@ -267,6 +267,7 @@ class Group:
s
=
solver
(
self
,
self
.
truck
,
self
.
pre_sch
)
# algorithm init
for
i
in
list
(
self
.
truck_set
):
try
:
truck_trip
=
self
.
truck
.
get_truck_current_trip
()[
self
.
truck
.
truck_uuid_to_index_dict
[
i
]]
truck_task
=
self
.
truck
.
get_truck_current_task
()[
i
]
truck_info
=
CurrentTruck
(
i
,
self
.
group_id
,
truck_trip
,
truck_task
)
...
...
@@ -416,5 +417,9 @@ class Group:
truck_dispatch
[
i
]
=
[
next_exactor_id
,
next_unload_area_id
]
except
Exception
as
es
:
self
.
logger
.
error
(
f
'车辆 {i} 调度异常'
)
self
.
logger
.
error
(
es
)
# return dispatch plan
return
truck_dispatch
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment