Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dubious keeps reloading after changing app.yaml #28

Open
hakunin opened this issue Mar 25, 2011 · 1 comment
Open

dubious keeps reloading after changing app.yaml #28

hakunin opened this issue Mar 25, 2011 · 1 comment

Comments

@hakunin
Copy link
Contributor

hakunin commented Mar 25, 2011

How to reproduce:

  1. run rake
  2. make change to app.yaml
  3. observe reloading in commandline

This happens using D003 and M007
tested with appengine 1.4.2 and appengine 1.4.0

@hakunin
Copy link
Contributor Author

hakunin commented Mar 25, 2011

I think I may have found the bug:

dubious_tasks.rb, line 94:

def update
  begin
    timestamp = app_yaml_timestamp
    @last_app_yaml_timestamp ||= timestamp

    needed_prerequisites = real_prerequisites.select {|r|r.needed?}

    needed_prerequisites.each {|dep| dep.execute }
    unless needed_prerequisites.empty? && timestamp == @last_app_yaml_timestamp
      begin
        open('http://localhost:8080/_ah/reloadwebapp')
        @last_app_yaml_timestamp = timestamp #shouldn't it be app_yaml_timestamp instead?
      rescue OpenURI::HTTPError
      end
    end
  rescue Exception
    puts $!, $@
  end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant