Exposed by tasks max-retry and added "global" max-retry for all tasks.

@mlaflamm @clementgarnier