Duration after which all the tasks will be ended when the app is in background.
Keeping it a bit less than 30 seconds, i.e. the time app gets when in background.
Duration for which each task is going to run at max.
Keeping it a bit less than 30 seconds, i.e. the time before which the background tasks should end.
The expiration handler of the task is only called when teh app is in background for more than 30 seconds