Depends. Trust your nose.(If you have some ailment that makes your sense of smell useless, then ask someone who isn't impaired!). Quick Pies To Make here.
How long can I refrigerate cookie dough? Since those are drop cookies, the best approach is to portion them into individual cookie portions, and freeze them on a sheet tray. Once solidly frozen, they can be moved into a zip back or other more convenient storage container.
They do not need to be thawed in order to bake, so they still are very convenient. Simply lay them out frozen on a tray, and bake. It will take a minute or two longer than the regular non- frozen time. It might be helpful to drop the temperature by 2. F or so, but it shouldn't really be necessary. The real issue with holding the dough is not just food safety (you should get 2- 3 days given raw eggs as the most perishable ingredient); this doesn't give you a very large window.
Eat By Date suggests 3- 5 days. It is also the loss of leavening power as the baking powder may slowly react, although the dough should be thick enough that most gets retained.