6.7 Edition publishing completion and post-edition task errors

When does Rhythmyx consider the edition to be complete. Is it when all post-edition tasks have completed or after the last item in the content lists of the edition has been published?

Also a bit like the scheduled task notifications is it possible to email a user if either:

  1. An item in the edition failed to publish.
  2. If a post-edition task failed to run.

Or would we have to build this into the post-edition task? The documentation suggests we can pass the failureCount publishing variable to the post edition task so I suppose we could check that and email a user if the failureCount is not 0?