Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Is there a limited runtime in external script calling? #3778

Closed
stefanCCS opened this issue Jun 22, 2020 · 4 comments
Closed

Question: Is there a limited runtime in external script calling? #3778

stefanCCS opened this issue Jun 22, 2020 · 4 comments
Labels

Comments

@stefanCCS
Copy link
Collaborator

I would like to understande the following:
If a "script task" is performed, is there any runtime limitation?
Background: Let's assume, a complex automatic taks is performed which needs hour or even days...

@matthias-ronge
Copy link
Collaborator

At the moment there is no timeout defined.

However, it is not a good implementation to keep a Java thread hanging for so long. The recommended approach is that the command only starts the external functionality and then returns. When the external function is finished, it should use the Active MQ service to finalize steps to notify Production that the task has been completed. This is, for example, how the Zeutschel OCR server interacts with Production.

@stefanCCS
Copy link
Collaborator Author

ok understood - and, of course a kind o asynchronours interface is much better.
One question is still open on my side: What shall the script return in this case.
I was under the impression, that returning "0" means "ok" = "work done", and everything not equal means "work NOT done".
So, just return something =! 0 in this case?

@matthias-ronge
Copy link
Collaborator

At the moment this will not work due to bug #3673

@stefanCCS
Copy link
Collaborator Author

ActiveMQ has some problems, see #3804 and #3805
This issue here is set to "closed".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants