Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
Trigger functionality to trigger rapid miner process after outside process completed
chiragrpatel
Hi Everyone,
I have requirement where I have some outside process (outside of Rapidminer) drop some file on RapidMiner server and as soon as file is dropped, I would like to run my rapidminer process.
From Scheduling tool, we can schedule job based on cron expression, but not based on some kind of file trigger or file watch.
If someone have achieve this functionality in rapidminer and can share the approach that would be much appreciated.
Thanks,
Chirag Patel
Find more posts tagged with
AI Studio
Accepted answers
chiragrpatel
Added timer functionality to restrict trigger watch based on timer. Please find attached latest code.
TriggerFileFunctionality.rmp
All comments
MartinLiebig
Hi,
why cant you just call an exposed WS of RM Server right after you drop it?
BR,
Martin
chiragrpatel
Thank you Martin for your response.
We can call WS, but it is rest service (Asynchronous) and our scheduling tool (Tidal Workload Automation) only works in Synchronous fashion.
The way WS works will not help in this case. WS work in following manner.
We call WS for process --> It gives response right away (scheduled/started running process with processid or something)
Our expectation is processes running in Synchronous fashion like below.
We start the process --> Process keep running and keep the connection open until it results in failure or success.
Thanks,
Chirag Patel
MartinLiebig
Hi
@chiragrpatel
,
i know that you are already in contact with my colleague
@MarcoBarradas
and we work from our professional service side on the solution. I will contribute on this channel.
But maybe other great experts like
@kayman
or
@Telcontar120
have thoughts here?
BR,
Martin
chiragrpatel
Yes. You are right Martin and Thank you for following with others. I have also asked
@MarcoBarradas
and
@Sharan_Gadi
to help on on this from RapidMiner side.
Thanks,
Chirag Patel
chiragrpatel
Just FYI... I was able to achieve the trigger watch functionality using python script. Please find attached solution.
TriggerFileFunctionality.rmp
chiragrpatel
Adding updated sample code as there was tabbing issue in previous file for some code. Some how I am not able to remove attached file, but used TriggerFileFunctionality.rmp file for latest sample code.
TriggerFileFunctionality (1).rmp
TriggerFileFunctionality.rmp
chiragrpatel
Added timer functionality to restrict trigger watch based on timer. Please find attached latest code.
TriggerFileFunctionality.rmp
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups