diff options
Diffstat (limited to 'manager.c')
-rw-r--r-- | manager.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -882,3 +882,13 @@ void manager_clear_jobs(Manager *m) { while ((j = hashmap_first(m->jobs))) job_free(j); } + +void manager_run_jobs(Manager *m) { + Job *j; + void *state; + int r; + + HASHMAP_FOREACH(j, m->jobs, state) { + r = job_run_and_invalidate(j); + } +} |