flow: reclaim flow when job is reaped
authorDavid, Bar <bardavvid@gmail.com>
Thu, 13 Aug 2020 09:40:55 +0000 (12:40 +0300)
committerDavid, Bar <bardavvid@gmail.com>
Sun, 30 Aug 2020 14:43:01 +0000 (17:43 +0300)
Signed-off-by: David, Bar <bardavvid@gmail.com>
backend.c

index a4367672d68ce80c88dc828245c2467aa1f6917c..05453ae2dea1fd0105ce49414fb49bfdf7b383ff 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -2042,6 +2042,7 @@ reaped:
 
                done_secs += mtime_since_now(&td->epoch) / 1000;
                profile_td_exit(td);
+               flow_exit_job(td);
        }
 
        if (*nr_running == cputhreads && !pending && realthreads)