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
3bd77b30
Commit
3bd77b30
authored
Jun 02, 2022
by
张晓彤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redis写入异常捕获
parent
bc302193
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
dispatcher.py
dispatcher.py
+10
-4
No files found.
dispatcher.py
View file @
3bd77b30
...
...
@@ -716,6 +716,9 @@ class DispatchSubmission:
isauto
=
1
,
isdeleted
=
0
,
)
.
first
())
if
item
is
None
:
raise
Exception
(
"调度计划表与实时监控不匹配"
)
self
.
logger
.
info
(
"dispatch-to-redis"
)
self
.
logger
.
into
(
item
.
id
,
item
.
truck_id
,
item
.
exactor_id
,
item
.
dump_id
)
except
Exception
as
es
:
self
.
logger
.
error
(
es
)
item
=
(
...
...
@@ -749,6 +752,9 @@ class DispatchSubmission:
isauto
=
1
,
isdeleted
=
0
,
)
.
first
())
if
item
is
None
:
raise
Exception
(
"调度计划表与实时监控不匹配"
)
self
.
logger
.
info
(
"dispatch-to-redis"
)
self
.
logger
.
into
(
item
.
id
,
item
.
truck_id
,
item
.
exactor_id
,
item
.
dump_id
)
except
Exception
as
es
:
self
.
logger
.
error
(
es
)
item
=
(
...
...
@@ -783,12 +789,12 @@ class DispatchSubmission:
if
item
is
None
:
raise
Exception
(
"调度计划表与实时监控不匹配"
)
self
.
logger
.
info
(
dispatch_seq
)
self
.
logger
.
info
(
dispatch_seq
[
1
])
self
.
logger
.
info
(
DeviceMap
.
excavator_index_to_uuid_dict
[
dispatch_seq
[
1
]])
#
self.logger.info(dispatch_seq)
#
self.logger.info(dispatch_seq[1])
#
self.logger.info(DeviceMap.excavator_index_to_uuid_dict[dispatch_seq[1]])
self
.
logger
.
info
(
"item"
)
print
(
item
.
id
,
item
.
truck_id
,
item
.
exactor_id
,
item
.
dump_id
)
self
.
logger
.
into
(
item
.
id
,
item
.
truck_id
,
item
.
exactor_id
,
item
.
dump_id
)
except
Exception
as
es
:
self
.
logger
.
error
(
es
)
item
=
(
...
...
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