initially grab jobs, then sleep as in libgearman