matt_elgazar
11/27/2023, 5:20 PMhtop
but looks like it’s hanging indefinitely. The data does not get populated in bigquery and when running sudo docker-compose up --build > logs/docker_logs_$(date +%s).log
the logs stop populating after a few hours. Any idea what could be causing this?visch
11/27/2023, 6:58 PMmeltano invoke tap-whatever
and see if you get data or if it times outmatt_elgazar
11/27/2023, 7:38 PMmeltano el tap-yfinance target-bigquery --state-id meltano-tap-yfinance-dev
In host.py
I have:
@app.route('/financial-elt/yfinance/tap-yfinance-dev', methods=['GET'])
def tap_yfinance_dev():
with app.app_context():
run_command = f'meltano --environment=dev el tap-yfinance target-bigquery --state-id tap_yfinance_dev'
shell_command = f'cd {os.path.join(app.root_path)}; {run_command};'
subprocess.run(shell_command, shell=True)
return make_response(f'Last ran project tap-yfinance-dev at {cur_timestamp()}.', 200)
scheduler.add_job(tap_yfinance_dev, trigger='cron', **cron, jitter=120)
if __name__ == "__main__":
serve(app, host=HOST, port=PORT, threads=2) # waitress wsgi production server
matt_elgazar
12/06/2023, 8:19 PM/home/melgazar9/meltano_projects/tap-yfinance
visch
12/06/2023, 9:07 PMmeltano --environment=dev el tap-yfinance target-bigquery --state-id tap_yfinance_dev
is the only part that's related to Meltano here.
From a quick look at your file I"d say it looks like a webapp to me so you'd expect the job to run indefinitely, but I"m sure my answer is coming because of the lack of any more context .
If I was debugging from where you were at right now I"d start from can I get meltano --environment=dev el tap-yfinance target-bigquery --state-id tap_yfinance_dev
running directly?matt_elgazar
12/06/2023, 9:10 PMgoogle-cloud-logging
libraryvisch
12/06/2023, 9:11 PM