In my project, you can activate several created task by toggling an activation switch.
problem is, if I toggle two switches say ON in quick succession, only the last one get successfully completed.
How do I implement some waiting mechanism such that the ajax request for subsequent activation is pending until the previous ones are completed before they are fired?