Background
We use Tentacles to send data to Google Ads API.
We last reinstalled Tentacles on Feb 12, 2024 which is fairly recently.
Issue
Starting on March 15, 2024, tentacles_api Cloud Function started timing out and crashing with the below error.
[T.MAIN] Error in API[ACLC], config[test_NC_pltv_2_2]: Error: Task[KjTtfB4HIzfCPqPjyLcG] has been processed 4 times.
at TentaclesTaskOnFirestore.start (/workspace/src/tentacles_task/tentacles_task_firestore.js:182:34)
at async sendApiData (/workspace/src/tentacles.js:461:30)
Function execution took 539999 ms, finished with status: 'timeout'
The function appears to be restarting and different instances of it run for 40 minutes.
Before these issues started, usually the function would just run for under 5 minutes and do all the work and succeed.
When I run this query:
SELECT
DATETIME(TIMESTAMP(createdAt), "US/Mountain") createdAtMST,
*,
SAFE_DIVIDE(numberOfFailed, numberOfLines) error_percent
FROM
adswerve-355706.tentacles.TentaclesTask
WHERE
DATE(TIMESTAMP(createdAt), "US/Mountain") >= "2024-03-01"
ORDER BY
createdAt DESC
I see that starting from March 15, there are NULLs in numberOfLines and numberOfFailed. Error says: Error: Task[KjTtfB4HIzfCPqPjyLcG] has been processed 4 times.
When examining data in Google Ads UI, it appears that some data is coming thru, but I am almost certain it's not all data, only part of it.
Questions
Is it a known issue? Can you replicate it on your end? Can it be fixed?
Steps to replicate the issue
- Try sending some test data to Google Ads API endpoint.
- Examine Cloud Funtion logs.
- Run the query for TentaclesTask (see above)