There is no way to send a jobId to the upload_from_file function.
My motivation is that I've had issues with uploading the same file twice, duplicating data in the target table. A suggested solution was to specify my own jobId as a hash of the file contents. That way, duplicate uploads would be rejected as having the same jobId. Without modifying the library, there is no ability to do this.
There is no way to send a
jobIdto theupload_from_filefunction.My motivation is that I've had issues with uploading the same file twice, duplicating data in the target table. A suggested solution was to specify my own
jobIdas a hash of the file contents. That way, duplicate uploads would be rejected as having the samejobId. Without modifying the library, there is no ability to do this.