The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Answers
I have RapidMiner Server 7.2
I deleted DEFAULT queue, created Blocking Queue and set Maximum load parameter to 1.
But it still possible to run many processes from web-app at the same time from different users (saw this in server log).
Am i doing right things?
Can you describe how to create and assign queue to web application step-by-step based on my case?
Also, i'm thinking about the way of notification of second user, that the process from first user still running and etc.
Thank you in advance
@SGolbert is right, web apps are working outside of queues.
What you need here is a kind of locking for the process, independent of the user and execution context. You could use a database for example.
Create a table called locks (process varchar, locked boolean).
Insert a line for your process name with locked = false.
At the beginning of the process, check if locked = true. If yes, cancel the process. If not, set locked = true and go on. Bonus points for your database if it can do this in one transaction, avoiding a (very unlikely) race condition between the read and the update.
At the end of the process, planned or unplanned (Check this!), release the lock again.
This is one way to do it. Another, again database dependent, is to create a table just for this process and lock it in a transactional way. Other processes might wait for the lock for a specified time (e. g. 1 minute) and cancel after the timeout.
Regards,
Balázs