How to switch a gamma-ray burst on and off through a magnetar

How to switch a gamma-ray burst on and off through a magnetar