A
Andy Koch
sorry this is rails related, but I think it's more of a Rake thing
I've made a rake task that I'm running from my rails, and it works - but
only once. If I then restart the server (mongrel) it works again - once.
I can simulate this in the console session as shown...
q = Rake::Task["cache_sweeper"]
... when q.invoke returns the "[#Proc:..." it has worked correctly, nil
means nothing happened.
Any one have insight to what is happening with rake?
Thank you,
I've made a rake task that I'm running from my rails, and it works - but
only once. If I then restart the server (mongrel) it works again - once.
I can simulate this in the console session as shown...
q = Rake::Task["cache_sweeper"]
=> said:=>q.invoke
[# said:q = Rake::Task["cache_sweeper"]=> said:q.invoke => nil
... when q.invoke returns the "[#Proc:..." it has worked correctly, nil
means nothing happened.
Any one have insight to what is happening with rake?
Thank you,