djgroen / FabSim3

Python 3 version of FabSim
BSD 3-Clause "New" or "Revised" License
25 stars 13 forks source link

Fab archer monitor broken #104

Closed velocirobbie closed 5 years ago

velocirobbie commented 5 years ago

Can't check queue status on archer. I don't understand how this function is supposed to work sorry.

fab archer monitor

Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/fabric/main.py", line 763, in main *args, **kwargs File "/usr/local/lib/python3.7/site-packages/fabric/tasks.py", line 387, in execute multiprocessing File "/usr/local/lib/python3.7/site-packages/fabric/tasks.py", line 277, in _execute return task.run(*args, **kwargs) File "/usr/local/lib/python3.7/site-packages/fabric/tasks.py", line 174, in run return self.wrapped(*args, **kwargs) File "/Users/robertsinclair/codes/FabSim3/base/manage_remote_job.py", line 339, in monitor execute(stat) NameError: name 'stat' is not defined

djgroen commented 5 years ago

I looked into this, and it appears that this functionality got changed in some of Hamid's commits.

Among other things, stat' got changed tojob_stat'.

Robbie, could you check if fab archer job_stat works for you? If so, then we can refactor this in a straightforward way.

I'll tag Hamid on this as well.

velocirobbie commented 5 years ago

Doesn't seem to work for me because my jobs are not getting put into a '$local_jobsDB_path'. I have never heard of this before, do I need to set it up?

djgroen commented 5 years ago

No, this to me looks like a refactor that went wrong. Hamid probably completely overlooked that people use these commands also when operating supercomputers directly.

I will reinstate the original stat command for now, but we will need to find a single command that does it for both QCG and SSH-driven jobs.

djgroen commented 5 years ago

I pushed a fix now, and fab archer stat and fab archer monitor work for me now. For you too?

velocirobbie commented 5 years ago

Yep both work for me, could you add it to master?

djgroen commented 5 years ago

Yes. I think I'll merge the branch in altogether. Checking it now :)

djgroen commented 5 years ago

@velocirobbie Merged it in now. Any luck? :)

velocirobbie commented 5 years ago

Still works, leave this open for the issue above

djgroen commented 5 years ago

stat and job_stat now do the same thing. So unless I broke anything I think this issue should be solved.

djgroen commented 5 years ago

in master now, so will close this.