You could use javascript to disable the button when it was clicked and enable it when the job was done .