Hello,
I have now added a scripted connector to the data sources.
I wanted to know when the script gets executed and where I can adjust the execution schedule, for example, "it should be executed every 10 minutes."
Additionally, is it possible to get a response like "Hi, the code was executed. Wait for the next 10 minutes"?
Thank you in Advance
Hi,
According to the documentation, the polling frequency is hardcoded to 1 minute (see Limitations).
As far as I know currently it is not possible to get these responses from DataMiner. A possible workaround is to implement this response in the Python script. For example, every time that the Python script is executed, you can append this action to a log file.
Hope it helps.
Hi,
I was referring to an external log made by the python script itself.
Something like:
with open(“myLogFile.txt”, “a”) as myfile:
myfile.write(“appended text”)
Ah okay thanks, that’s a good idea
Okay, thank you.
How about including the time.sleep() function in my Python code to add a delay?
Do you mean the aggregator log? How can I write to the log file? How can I write in the protocol logs ?