Toggle navigation
Toggle navigation
This project
Loading...
Sign in
서승완
/
kappa
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Jose Diaz-Gonzalez
2016-06-12 02:13:33 -0400
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
e2bd7b1f76d55056e33846bf65a8fc628ea6a7dc
e2bd7b1f
2 parents
8eb68b18
4d2011de
Merge remote-tracking branch 'Miserlou/tailwait'
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
kappa/function.py
kappa/function.py
View file @
e2bd7b1
...
...
@@ -13,13 +13,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
hashlib
import
logging
import
os
import
zipfile
import
time
import
shutil
import
hashlib
import
time
import
uuid
import
zipfile
from
botocore.exceptions
import
ClientError
...
...
@@ -274,9 +274,16 @@ class Function(object):
def
exists
(
self
):
return
self
.
_get_response
()
def
tail
(
self
):
LOG
.
info
(
'tailing function:
%
s'
,
self
.
name
)
def
tail
(
self
,
attempt
=
0
):
try
:
LOG
.
debug
(
'tailing function:
%
s'
,
self
.
name
)
return
self
.
log
.
tail
()
except
Exception
,
e
:
if
attempt
>
10
:
return
e
time
.
sleep
(
attempt
)
return
self
.
tail
(
attempt
+
1
)
def
list_aliases
(
self
):
LOG
.
info
(
'listing aliases of
%
s'
,
self
.
name
)
...
...
Please
register
or
login
to post a comment