Wow! Thanks Niphlod for your kind and efficient helps. And I appreciate 
your praise words to me. This is very encouraging for an amateur python-er. 

In my real-word application, I used MySQL database from AWS RDS. Do you 
think if it will also cause "concurrent" issue?

I see in the gist that only the gluon/scheduler.py file has been changed. 
So is it fine if I only update this scheduler.py file from your new commit? 
I tried to update this python file and it seems the worker assignment 
didn't change for the toy application. Do I need to restart the web2py 
application to make it work? How I can do that if it is already deployed in 
EC2 instance?

Thanks!


On Thursday, December 18, 2014 5:58:35 PM UTC-5, Niphlod wrote:
>
> ok, got it, all tests pass. PR ready at 
> https://github.com/web2py/web2py/pull/565
>
> In the meantime, if you want to verify the "better assignment", all you 
> have to do is applying this 
> <https://github.com/web2py/web2py/pull/565/files#diff-1cbb9c488bb09b40aff4560078808c79R1091>
>  
> to the scheduler currently on master, i.e. on the assign_tasks function, 
> add the green part.
>         
>         .......
>         #build workers as dict of groups
>         wkgroups = {}
>         for w in all_workers:
>             if w.worker_stats['status'] == 'RUNNING':
>                 continue
>             group_names = w.group_names
>         ......
>
>
>
> @all: this is one of the best "bug report"/"feature request" discussion 
> I've seen so far:
> - User asking politely legitimate questions
> - an app to reproduce the behaviour with examples
> - user reporting "there's something wrong" with actual data at hand, 
> without barking at the wrong tree
>
> @PengfeiYu: it's been a real pleasure. See you
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to