Implement get_ttl method on Job.