Yoav Gilor
05/22/2023, 12:44 PMsqlalchemy.exc.ProgrammingError: (mysql.connector.errors.ProgrammingError) Failed processing pyformat-parameters; Python 'pendulum' cannot be converted to a MySQL type
[SQL: UPDATE runs SET `status`=%(status)s, run_body=%(run_body)s, update_timestamp=%(update_timestamp)s, start_time=%(start_time)s WHERE runs.run_id = %(run_id_1)s]
[parameters: {'status': 'STARTED', 'run_body': '{"__class__": "PipelineRun", "asset_selection": {"__frozenset__": []}, "execution_plan_snapshot_id": "00fa4f5ffdc965990dadefa6471507a4a8a2396b", "ext ... (3958 characters truncated) ... rucor_FSOS_By_SceneType_By_SKU_1608", "write_vanilla_calculations", "combine_kpi_results", "generate_result_hierarchy", "write_results"], "tags": {}}', 'update_timestamp': <Pendulum [2023-05-22T12:23:58.215929+00:00]>, 'start_time': 1684758238.215929, 'run_id_1': '12ef4820-d9eb-4975-9b17-ba09b8ea247b'}]
It's happening in the execute_in_process and execute_job methods when it's trying to update the runs table in the database.
I see here : dagster/_core/storage/runs/sql_run_storage.py:206
that the update_timestamp field is set as a Pendulum object. but from some reason the MySQL cannot handle that.
I recently installed pendulum==1.4.4 in my environment to solve a different issue, perhaps it's related?
Thanks!owen
05/22/2023, 8:42 PMYoav Gilor
05/23/2023, 9:20 AMowen
05/23/2023, 3:51 PMmysql-connector-python
Yoav Gilor
05/28/2023, 10:36 AMowen
05/30/2023, 4:39 PMmysql-connector-python==8.0.31
-- if you do a fresh install of dagster in an empty virtualenv, do you still get this issue?