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

Queue Class does not have an easily acessible "queue-time" member variable #18

Closed
Rubyj opened this issue Dec 22, 2017 · 2 comments · Fixed by #19
Closed

Queue Class does not have an easily acessible "queue-time" member variable #18

Rubyj opened this issue Dec 22, 2017 · 2 comments · Fixed by #19
Assignees

Comments

@Rubyj
Copy link

Rubyj commented Dec 22, 2017

In the Queue Class I feel as if the "queue-time" member variable should exist under artifacts just like location does. However, I have to traverse artifacts._elems[0]._children[0].text to get the queue time. Can we make this so something like artifacts[0].queue_time works? Thanks.

@tcezard
Copy link

tcezard commented Dec 25, 2017

It would probably be a new list of tuple or dict like

[
    (Artifact(), '2017-12-19T15:02:33.050+00:00', (Container(), 'H11')),
    (Artifact(), '2017-12-19T15:02:33.050+00:00', (Container(), 'H12')), 
]

or

[
    {'artifact': Artifact(), 'queue-time': '2017-12-19T15:02:33.050+00:00', 'location': (Container(), 'H11')},
    {'artifact': Artifact(), 'queue-time': '2017-12-19T15:02:33.050+00:00', 'location': (Container(), 'H12')}
]

and queue.artifacts would still return the list of artifacts only for backward compatibility.
It is certainly doable.

@tcezard tcezard self-assigned this Dec 25, 2017
@Rubyj
Copy link
Author

Rubyj commented Dec 25, 2017

something like this would be perfect! Thanks!

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

Successfully merging a pull request may close this issue.

2 participants