After you have finished adding work blocks to the work queue, you must call alf_task_finalize function to notify ALF that there are no more work blocks for this particular task. A task that is not "finalized" cannot be run to the completion state.