× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




I want to make sure that it is simple to check
for these jobs and start if not running.


You could have your node.js process attempt an exclusive lock on a "known"
data area when it starts. If the data area is already locked, then
immediately end the Job.

Your "check" routine could also attempt an exclusive lock on the data area.
If it fails, that means your node.js process is running.

This technique of having servers lock a data area has been used for as long
as I can remember, something like 40 years.

Not to nit-pick on terminology, but it is confusing when you say that
"servers" are being "called" by other IBM i Jobs, when you really mean that
they are communicating via HTTP "requests" and "responses".

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.