move EVENT_KEY_FORMAT to events module properly type fetch queue event start/end can be str or datetime