You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why do I get less rows if I run the same code from a DAG?
For the same query, I get 4185 rows if I run locally from the command line but only 2155 rows if run from a DAG in cloud composer.
Is this an authentication issue? My DAG is not throwing any errors.
The text was updated successfully, but these errors were encountered:
Hi @joshcarty - Thanks very much for your reply and the code :-) I actually should have taken the question down over the weekend because I'm not seeing this for any other days that it has run and have decided to ignore it for now. Perhaps you could help with a different DAG driven authentication problem though?
I am using serialised credentials. Whether I'm running from my command line, or within the DAG, this works nicely for around a week before I get the error that my credentials have expired. I then have to run the authentication again, update the credentials.json and I can run the script for another week (It's not an exact 7 day thing, but it's thereabouts each time). At the moment, I can't fully automate the process because I need to authenticate at the browser once per week and replace the credentials.json in the DAG bucket in cloud composer. It's not terrible, but it's not ideal either. Can you tell me if there's anything I'm doing wrong or if you know of a way to stop this happening? I am collecting around 4k rows per search appearance filter (usually 9) per domain (10) per day, so approx 360k rows total per day if that makes any difference and, rather frustratingly, I don't have control of my work device and have forced restarts on a regular basis.
Why do I get less rows if I run the same code from a DAG?
For the same query, I get 4185 rows if I run locally from the command line but only 2155 rows if run from a DAG in cloud composer.
Is this an authentication issue? My DAG is not throwing any errors.
The text was updated successfully, but these errors were encountered: