Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Pending tasks only being reported once #5

Open
shairozan opened this issue Dec 18, 2019 · 3 comments
Open

Pending tasks only being reported once #5

shairozan opened this issue Dec 18, 2019 · 3 comments
Assignees

Comments

@shairozan
Copy link
Collaborator

If there is a pending job, there is reported only 1 task

job_state_value{hostname="hostname",job_number="62752",name="test.sh",owner="user",task_id="0"} 0

although there are multiple tasks queued. I can provide xml example if needed.

@shairozan shairozan self-assigned this Dec 18, 2019
@shairozan
Copy link
Collaborator Author

@dohnto Please provide the XML for this so I can figure out what needs to change in serialization

@shairozan
Copy link
Collaborator Author

@dohnto Wanted to follow up and see if you can provide the XML output for this as mentioned in the other issue

@dohnto
Copy link
Contributor

dohnto commented Jan 3, 2020

@shairozan Sorry for the delay.

My motivation is to count how many pending tasks there are.

    <job_list state="pending">
      <JB_job_number>6295819</JB_job_number>
      <JAT_prio>2.50000</JAT_prio>
      <JB_name>aaa.sh</JB_name>
      <JB_owner>user</JB_owner>
      <state>Eqw</state>
      <JB_submission_time>2019-12-21T05:43:31</JB_submission_time>
      <slots>1</slots>
      <tasks>58-60:1</tasks>
    </job_list>

but

job_state_value{hostname="host",job_number="6295819",name="aaa.sh",owner="user",task_id="0"} 0

There is just task_id="0", but actually, there are more tasks pending.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants