Skip to content

Commit

Permalink
Merge pull request #2057 from cdonati/enable-app-after-upload
Browse files Browse the repository at this point in the history
Wait until the app is uploaded before enabling
  • Loading branch information
menivaitsi authored Jun 19, 2016
2 parents ad42edf + 96cc19e commit 456ff77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions AppController/djinn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2000,6 +2000,8 @@ def done_uploading(appname, location, secret)
if File.exists?(location)
begin
ZKInterface.add_app_entry(appname, my_node.public_ip, location)
uac = UserAppClient.new(my_node.private_ip, @@secret)
uac.enable_app(appname)
result = "Found #{appname} in zookeeper."
rescue FailedZooKeeperOperationException => e
Djinn.log_warn("(done_uploading) couldn't talk to zookeeper " +
Expand Down
2 changes: 1 addition & 1 deletion AppDB/soap_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def __init__(self, name, owner, language):
self.last_time_updated_date_ = str(self.creation_date_)
self.cksum_ = "0"
self.num_entries_ = "0"
self.enabled_ = "true"
self.enabled_ = "false"
self.indexes_ = "0"
return

Expand Down

0 comments on commit 456ff77

Please sign in to comment.