synchronization

How to synchronize python and c sharp program running in windows?

How to synchronize python and c sharp program running in windows? Question: I am currently working in a project where I need to sychronise data between python and c sharp.I need to label data from c sharp using python machine learning program. To label the data, I am using timestamp from both the application and …

Total answers: 1

How to make periodical synchronization in this function?

How to make periodical synchronization in this function? Question: I need to make an app that sends its content to another directory so their contents are exactly the same. On top of that I need it to send logs and also I should provide an amount of time when this application makes another synchronization between …

Total answers: 1

P4Python use argument -I Indicators

P4Python use argument -I Indicators Question: I would like to use the -I argument to know what is happening other than just exceptions when I sync using p4python. The website says I can use -I for progress indicators as a console command, particularly with p4 -I sync -q. This works in console, but I wasn’t …

Total answers: 1

ElasticSearch updates are not immediate, how do you wait for ElasticSearch to finish updating it's index?

ElasticSearch updates are not immediate, how do you wait for ElasticSearch to finish updating it's index? Question: I’m attempting to improve performance on a suite that tests against ElasticSearch. The tests take a long time because Elasticsearch does not update it’s indexes immediately after updating. For instance, the following code runs without raising an assertion …

Total answers: 5

concurrent writing to the same file using threads and processes

concurrent writing to the same file using threads and processes Question: What is the correct solution to be sure that the file will be never corrupted while using many threads and processes? version for threads, which care about opening errors. lock = threading.RLock() with lock: try: f = open(file, ‘a’) try: f.write(‘sth’) finally: f.close() # …

Total answers: 1

"select" on multiple Python multiprocessing Queues?

"select" on multiple Python multiprocessing Queues? Question: What’s the best way to wait (without spinning) until something is available in either one of two (multiprocessing) Queues, where both reside on the same system? Asked By: cdleary || Source Answers: You could use something like the Observer pattern, wherein Queue subscribers are notified of state changes. …

Total answers: 9