connor_flynn
04/05/2022, 3:02 PMstart_date
& end_date
for our Google Analytic extractors, and then proceeds to run the pipeline.
I have tried to schedule the script using a cron job. However, despite the script running when I manually execute, the cron job shows a ran but my config settings remain the same and the pipeline did not run!
Any suggestions would be greatly appreciated!aaronsteers
04/05/2022, 4:20 PMtouch $target_date.marker.txt
at the end of the script would simply create an empty file as proof that the code ran.connor_flynn
04/05/2022, 4:23 PMconnor_flynn
04/05/2022, 4:37 PMconnor_flynn
04/05/2022, 6:04 PMconnor_flynn
04/05/2022, 7:30 PMPATH+
! Thank you for the help!
PATH+=:/home/ubuntu/.local/bin
for i in {0..0}
do
j=$(($i+1))
target_date=$(date -d "-$i day" +'%Y-%m-%d')
target_date_minus_one=$(date -d "-$j day" +'%Y-%m-%d')
### Landing Page Transaction ID to Source Medium
meltano config ga-landing_page_transaction_id_to_source_medium set start_date "$target_date_minus_one"
meltano config ga-landing_page_transaction_id_to_source_medium set end_date "$target_date"
meltano elt ga-landing_page_transaction_id_to_source_medium Google-Analytics --job_id=landing-page-transaction-id-to-source-medium
done
aaronsteers
04/05/2022, 8:07 PM