I use ortho ecosense outdoor insect killer comes in little spray bottle keeps em away for 3 4 weeks sometimes longer... i used oils and my plants wilted
The bottle of the stuff you used should have some details on how long you can use before harvest. Just read all the labels and the little pamphlet those chemical sprays come with and it should tell ya.