Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
I
ils-common-video
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
提交
议题看板
打开侧边栏
OpsTeam
ils-common-video
Commits
167910c6
提交
167910c6
authored
9月 25, 2021
作者:
lc.zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ils-video-recorder:修改钉钉报错消息提示
上级
4942a681
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
6 行增加
和
9 行删除
+6
-9
recorder.py
ils_common_video/isc_video/recorder.py
+6
-9
没有找到文件。
ils_common_video/isc_video/recorder.py
浏览文件 @
167910c6
...
@@ -73,7 +73,7 @@ class StreamRecorder:
...
@@ -73,7 +73,7 @@ class StreamRecorder:
except
Exception
as
e
:
except
Exception
as
e
:
log
.
exception
(
e
)
log
.
exception
(
e
)
send_alarm_to_developer
(
'recorder_{}'
.
format
(
thread_id
),
e
)
send_alarm_to_developer
(
'recorder_{}'
.
format
(
dynaconf
.
settings
.
get
(
'SERVICE_NAME'
,
0
)
),
e
)
finally
:
finally
:
try
:
try
:
...
@@ -287,10 +287,6 @@ class ProcessMessage:
...
@@ -287,10 +287,6 @@ class ProcessMessage:
@staticmethod
@staticmethod
def
send_unverified_file
(
video_file
,
event_id
,
video_url
,
def
send_unverified_file
(
video_file
,
event_id
,
video_url
,
device_code
,
biz_type
,
service_type
,
db_table
,
detection_region
=
''
):
device_code
,
biz_type
,
service_type
,
db_table
,
detection_region
=
''
):
queue_name
=
'UNVERIFIED_EVENT_QUEUE'
connection
=
rabbitmq_connect
()
channel
=
connection
.
channel
()
channel
.
queue_declare
(
queue_name
,
durable
=
True
)
log
.
info
(
'添加待处理文件
%
s,到分析队列,开始时间
%
s, 结束时间
%
s'
,
video_file
.
file_name
,
log
.
info
(
'添加待处理文件
%
s,到分析队列,开始时间
%
s, 结束时间
%
s'
,
video_file
.
file_name
,
video_file
.
start_time
,
video_file
.
end_time
)
video_file
.
start_time
,
video_file
.
end_time
)
log
.
info
(
'视频文件
%
s的网络质量为
%
s, 评级为
%
s'
,
log
.
info
(
'视频文件
%
s的网络质量为
%
s, 评级为
%
s'
,
...
@@ -320,11 +316,12 @@ class ProcessMessage:
...
@@ -320,11 +316,12 @@ class ProcessMessage:
'network_quality'
:
video_file
.
network_quality
,
'network_quality'
:
video_file
.
network_quality
,
'network_quality_grade'
:
video_file
.
network_quality_grade
,
'network_quality_grade'
:
video_file
.
network_quality_grade
,
}
}
queue_name
=
'UNVERIFIED_EVENT_QUEUE'
connection
=
rabbitmq_connect
()
channel
=
connection
.
channel
()
channel
.
queue_declare
(
queue_name
,
durable
=
True
)
# 发送mq信息
# 发送mq信息
channel
.
basic_publish
(
exchange
=
''
,
routing_key
=
queue_name
,
channel
.
basic_publish
(
exchange
=
''
,
routing_key
=
queue_name
,
body
=
json
.
dumps
(
video_data
,
ensure_ascii
=
False
))
body
=
json
.
dumps
(
video_data
,
ensure_ascii
=
False
))
connection
.
close
()
connection
.
close
()
@staticmethod
@staticmethod
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论