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

jug status not working #10

Closed
bcgv opened this issue Jun 4, 2014 · 2 comments
Closed

jug status not working #10

bcgv opened this issue Jun 4, 2014 · 2 comments

Comments

@bcgv
Copy link

bcgv commented Jun 4, 2014

Hi,
First of all thanks for this great lib! I am thinking about moving some of my code to it. However I have a problem here (python 3.3.5) with jug status. For example if I am running the prime numbers example and jug status primes.py always output :

    Waiting       Ready    Finished     Running  Task name                                                                 
----------------------------------------------------------------------------------------------------------------------------
           0          99           0           0  primes.is_prime                                                           
............................................................................................................................
           0          99           0           0  Total

Even though the computations are finished as I can see by doing jug shell primes.py

I did look around in jug/subcommands/status.py and by commenting this line:
https://github.com/luispedro/jug/blob/master/jug/subcommands/status.py#L186
I have the correct behaviour.

Thanks!

luispedro added a commit that referenced this issue Jun 4, 2014
Currently it does not work correctly in Python 3.4 as there is a mixup
of unicode and bytestrings.

This is the root cause of issue #10
@luispedro
Copy link
Owner

This actually uncovered a pretty serious bug with Python3, so I will backport the fix and release a version 1.0.1

Thanks for the report.

@bcgv
Copy link
Author

bcgv commented Jun 5, 2014

Thanks for the fix.

luispedro added a commit that referenced this issue Jun 12, 2014
Currently it does not work correctly in Python 3.4 as there is a mixup
of unicode and bytestrings.

This is the root cause of issue #10
luispedro added a commit that referenced this issue Jun 12, 2014
This causes many problems in Python3+.

Closes #10

It also fixes a more serious bug whereby all of the keys in a jugdir
started with b'! This was because a conversation from bytes to str was
causing the prefix b' to be added to all keys!
luispedro added a commit that referenced this issue Aug 15, 2014
This is related to issues #10 & #12 and deals with mixing bytes &
strings.
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

2 participants