documentcloud / cloud-crowd

Parallel Processing for the Rest of Us
https://github.com/documentcloud/cloud-crowd/wiki
MIT License
851 stars 92 forks source link

Not working with latest version of sinatra #31

Open devstator82 opened 13 years ago

devstator82 commented 13 years ago

Hi guys,

Don't know if you noticed or wether this happens to be something specific for me, but using the latest version of sinatra (1.2.6) cloud-crowd was not running due to deprecation of Sinatra::Default

Here is a fix if it helps.

Waseem

forgotpw1 commented 12 years ago

I saw and implemented some of these cloud-crowd commits from back in the day. Thanks for putting those out there. They helped me get CloudCrowd live on an instance of mine, and most importantly, use https to transfer the files. Ruby 1.8.7 has an exception when trying to use the https.

You probably are aware that it messes up the "operation center," even though it does process jobs (I think).

On the front end the operation center, the javascript fails here.

this._nodes[i].workers.length;

Is there some reason why workers is getting set to nil on the backend?

I'll be looking into this a little more. Maybe there's a nil being set instead of an empty set that would probably not break the op center.