Dekel R
08/15/2022, 1:51 PMTask 'upload_data_to_bq_task': Exception encountered during task execution!
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/prefect/engine/task_runner.py", line 880, in get_task_run_state
value = prefect.utilities.executors.run_task_with_timeout(
File "/usr/local/lib/python3.8/dist-packages/prefect/utilities/executors.py", line 468, in run_task_with_timeout
return task.run(*args, **kwargs) # type: ignore
File "/Users/dekelr/PycharmProjects/similarity-filter-layer/prefect_tasks/upload_data_to_bq.py", line 24, in upload_data_to_bq_task
SystemError: unknown opcode
The code fails when running this specific row - (batch size is either an int or None)
if batch_size is None:
Everything works fine when I change this row to “if not batch_size:”
After some troubleshooting - I found this thread - https://github.com/PrefectHQ/prefect/issues/3635
Running the same flow with the original row of -
if batch_size is None:
Still doesn’t work when registering with python 3.8 (same python version as in the container)
Can you please explain this really odd behavior?
ThanksJeff Hale
08/15/2022, 3:15 PMDekel R
08/16/2022, 7:49 AMJeff Hale
08/16/2022, 1:33 PMDekel R
08/17/2022, 7:07 AMif batch_size is None:
So I think this time, the model version mismatch isn’t the cause of this error.Jeff Hale
08/17/2022, 12:06 PMDekel R
08/17/2022, 12:43 PM