I'm creating a tool that uses the P4Python's run_sync. I've noticed, that if the file cannot be overwritten, e.g. it is an opened .exe, P4Python waits about 2 minutes and tries 10 times to overwrite it. This takes too long and I need some way to make this time shorter/interrupt the operation.
I know, that in console the time could be shortened with:
p4 -r[number of tries] -vnet.maxwait=[seconds of waiting]
But with P4Python global parameters cannot be used this way and I cannot find the way to set those parameters.
The other solution would be to send a signal that would stop the syncing, but I also did not find the way to do this.
What can I do?