I am using background_thread from google.appengine.api in an app engine standard application to create a thread that polls a pull task queue every 30 seconds for new tasks. App engine is grouping the logs per run into /_ah/background entries on stack driver with everything logged by the application grouped inside that entry.
The problem is all the /_ah/background logged have the same timestamp which is of the first entry created but the application logs that are grouped under it show correct timestamp. This also results in stack driver not logging logs after a day's run as it reaches the limit (probably as all entries are logged with same timestamp).
Any ideas on why the /_ah/background entries have same timestamp ?