> In hardware the classic solution to this is a debounce circuit.
To debounce in tasker--- you can search this group for other approaches but this is the one I use. It will stop both the enter task and exit task from running when the context bounces. This example uses a context : state: Cell near. This will work with any state context.
Profile: Cell on
Context: cell near
Enter Task: Start
1. Enter task stuff
<put the following actions as the first actions in your exit task>
Exit task:stop
1. Wait 5 sec <whatever time you need>
2. Stop <enter task> ;Start
3 Stop if %PACTIVE ~ *,Cell on,*
4. Rest of exit task !