[urbanecm@deploy1003 ~]$ kubectl get jobs -l username=urbanecm -L script NAME STATUS COMPLETIONS DURATION AGE SCRIPT mw-script.eqiad.ae74h9jw Failed 0/1 12d 12d revalidateLinkRecommendations.php [urbanecm@deploy1003 ~]$ kubectl logs job/mw-script.eqiad.ae74h9jw error: timed out waiting for the condition [urbanecm@deploy1003 ~]$
The job is 12 days ago, but it is a long running one, and I check its status about once a week. We discussed a bit with @RLazarus:
I know I recently complained about that... but `kubectl logs job/mw-script.eqiad.ae74h9jw` timeouts... 19:47 <rzl> urbanecm: that job is from 12 days ago, and the pods are gone now 19:48 <rzl> I wish there were a clearer error message than just a timeout, but that's the cause 19:50 <urbanecm> rzl: that job was running for the past 12 days, it is a very long running one 19:50 <rzl> aha 19:51 <urbanecm> rzl: i see `lastProbeTime: "2026-08-18T10:49:38Z"` in the yaml output, not sure what probing means exactly though 19:52 <rzl> last time kubernetes health-checked it 19:52 <rzl> the pod is still gone, so there's no way for kubectl logs to succeed -- you could see if there's something more persistent in logstash 19:54 <urbanecm> ...but why is it gone so quickly? i check the job fairly regularly (the last time was at most last week) 19:54 <rzl> that is a good question and I don't know :) 19:54 <urbanecm> fair enough :) 19:54 <urbanecm> thanks for looking 19:54 <rzl> sorry, I can dig into this this week but I can't right now -- if you open a task we'll have a look in serviceops
I check the status of the job about once a week (I definitely checked sometime during last week), and it feels like the logs disappeared fairly quickly. I'm curious what reasonable practices would be when monitoring long running scripts – because now I have a script I had to blindly rerun, because I have no clue about why it failed.
Filling this ticket per @RLazarus's request.