fahctl state deadline translation please

Moderators: Site Moderators, FAHC Science Team

Post Reply
parkut
Posts: 365
Joined: Tue Feb 12, 2008 7:33 am
Hardware configuration: Running exclusively Linux headless blades. All are dedicated crunching machines.
Location: SE Michigan, USA

fahctl state deadline translation please

Post by parkut »

fahctl state
returns a lot of good stuff for closer monitoring
however "deadline": 345600
and "run_time": 91799
as examples need translation for me to know the actual date/time
such as 2025-02-06T05:30:52Z

is there a formula?
Joe_H
Site Admin
Posts: 8091
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Studio M1 Max 32 GB smp6
Mac Hack i7-7700K 48 GB smp4
Location: W. MA

Re: fahctl state deadline translation please

Post by Joe_H »

Those values are probably in seconds remaining for the deadline, and seconds since the WU was downloaded for runtime. I haven't installed fahctl on my system, but many time values are reported in seconds, to convert to a date/time format just requires knowing when the WU started.
Image
calxalot
Site Moderator
Posts: 1441
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: fahctl state deadline translation please

Post by calxalot »

You can also use lufah

https://github.com/kbernhagen/lufah

Python code that interprets some of that is in

https://github.com/kbernhagen/lufah/blo ... e/units.py
calxalot
Site Moderator
Posts: 1441
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: fahctl state deadline translation please

Post by calxalot »

You can also look at JavaScript code for web control

https://github.com/FoldingAtHome/fah-web-client-bastet
calxalot
Site Moderator
Posts: 1441
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: fahctl state deadline translation please

Post by calxalot »

It’s been a while, but I think timeout and deadline are seconds to add to assignment time.

run_time might not be what it seems.
If it doesn’t change, it is probably a historic run time for estimating current WU eta.
Post Reply