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

Error when loading custom data types from multiple server in single script #1700

Open
FlorianDue opened this issue Aug 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@FlorianDue
Copy link

Hey,

im currently developing a project, where I start multiple server from a single project (main.py) file.

Describe the bug

For these server, is wrote some code to generate custom OPC UA Structures from a custom format. However, when i use the
await server.load_data_type_definitions() function, only the first server started will return the correct types.

Screenshots
Here are some screen shots from my example code:

grafik

grafik

Expected behavior
The expected behavior would be, that both servers can load the same customd ata types. However, only the first does.

Client are also only able to load the types from the first server (if multiple servers are started from a single script)

To Reproduce
Here is a small python project to reproduce the Error
bug_report_python_opcua.zip

Version
python 3.10.14
asyncua 1.1.5

@schroeder-
Copy link
Contributor

In the current design the datatypes are a global variables. I would use the multiprocessing module and a process per server.

@schroeder- schroeder- added the enhancement New feature or request label Aug 28, 2024
@github-staff github-staff deleted a comment from YeGop0218 Oct 28, 2024
@github-staff github-staff deleted a comment from YeGop0218 Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants