Skip to content

Unable to start mirth channel after using ChannelUtil to halt #4701

Answered by tonygermano
shadowlinq asked this question in Q&A
Discussion options

You must be logged in to vote

This should only be required for mirth versions prior to 3.6.

I had two channels that hit a particularly bad sftp server that constantly had errors. I created a new channel called "File Reader Bouncer." I placed the code below in a Javascript Reader. It will watch for the number of pool threads in the file reader channels being monitored to be used up to a threshold, and then try to stop the channel. If it takes too long, then it will try to halt the channel. Then assuming the channel stopped, it will restart it. It will create a blank message setting the default metadata values (mirth_source and mirth_type) with the channelId and status.

It worked well enough for me. You could also proba…

Replies: 5 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pacmano1
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@shadowlinq
Comment options

@tonygermano
Comment options

@tonygermano
Comment options

@shadowlinq
Comment options

@shadowlinq
Comment options

Comment options

You must be logged in to vote
1 reply
@shadowlinq
Comment options

Answer selected by pacmano1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants