FredHutch / batch-dashboard

1 stars 0 forks source link

Crossing Streams for Job Search button vs job in table #22

Open vortexing opened 4 years ago

vortexing commented 4 years ago

When I go to the Jobs tab and put in a jobid like (35b31082-470c-426f-8325-7e431912f841), and click the "search" button, the window that pops up appears to show two different jobs as different attempts of this jobID but they are not. Included in this are links to the second, independent jobs' logs, the lists of job inputs for both jobs are included all together as one list, etc.

Screen Shot 2020-06-09 at 9 30 40 AM

However, if I click on the jobid in the table, the window that pops up shows the job information correctly.

Screen Shot 2020-06-09 at 9 32 50 AM

dtenenba commented 4 years ago

Hmm....when I paste the job id into the box, I only see one attempt:

image

But then I tried it again and saw two attempts.

When I describe the job using the CLI, I see two attempts:

$ aws batch describe-jobs --jobs 35b31082-470c-426f-8325-7e431912f841 |grep '"container":'
                    "container": {
            "container": {

(The container key shows up once for each attempt.)

I ran that a whole bunch of times and it seemed to consistently return two attempts.

So....it does seem like there were two attempts for that job. If that is wrong, then the problem is at the AWS Batch level, not the dashboard level. But what happens and where you go when you clic on those View Logs links could definitely be a dashboard issue. I will look into this some more.

dtenenba commented 4 years ago

Yeah, this is a UI thing. If I close the dialog and click Search again, I then see another attempt, and I see an additional attempt each time I do that. They all seem to be the same (the giveaway is the identical start times and end times) and clicking on the View Logs brings me to the same page (which seems to be the correct page) whichever one I click on.

I am not understanding your description which seems to suggest that info from separate unrelated jobs is being shown in this dialog. To me it seems like info from this one (correct) job is being duplicated but I am not seeing any foreign unrelated job info sneaking in there. Similarly, clicking on View Logs seems to take me to the right place.

If I am wrong about this can you describe in more detail exactly where you are seeing separate jobs' info displayed in that dialog or in the View Logs page?

vortexing commented 4 years ago

Now that the jobs are all done, I can no longer reproduce them either. It only happened the 3 times I reloaded the app when the jobs were still running. If I see it again, I'll post more info.