Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
download
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
0
Merge Requests
0
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
hujun
download
Commits
f0fbbc46
Commit
f0fbbc46
authored
Oct 28, 2022
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
eb6d9e7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
download.py
download.py
+12
-9
No files found.
download.py
View file @
f0fbbc46
...
...
@@ -107,24 +107,27 @@ class DownFile:
self
.
local
.
url
=
self
.
ali_yun_sdk
(
item
[
'call_time'
],
item
[
'call_id'
])
self
.
local
.
is_ok
=
0
except
Exception
as
result
:
self
.
lock
.
acquire
()
self
.
log
(
"exception 20s------------"
,
str
(
result
))
self
.
lock
.
release
()
time
.
sleep
(
20
)
#
self.lock.acquire()
#
self.log("exception 20s------------", str(result))
#
self.lock.release()
#
time.sleep(20)
self
.
local
.
is_ok
=
1
# 第二次尝试
if
self
.
local
.
is_ok
==
1
:
try
:
# self.local.count_sleep = self.local.count_sleep + 1 # 增加暂停计数
self
.
local
.
url
=
self
.
ali_yun_sdk
(
item
[
'call_time'
],
item
[
'call_id'
])
except
Exception
as
result
:
self
.
lock
.
acquire
()
self
.
log
(
"two exception error-----call_time="
+
item
[
'call_time'
]
+
'&call_id='
+
item
[
'call_id'
],
str
(
result
))
self
.
local
.
url
=
self
.
ali_yun_sdk
(
item
[
'call_time'
],
item
[
'call_id'
])
self
.
lock
.
release
()
except
Exception
as
result
:
# self.lock.acquire()
# self.log(
# "two exception error-----call_time=" + item['call_time'] + '&call_id=' + item['call_id'],
# str(result))
# self.lock.release()
if
len
(
self
.
local
.
url
)
==
0
:
continue
...
...
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