Could user scripts potentially run in parallel?

Hi!

We have a custom update module that runs some commands that cannot be called in parallel. They handle communication with a device that cannot handle concurrent access.
So far we only use those commands in state scripts inside an artifact as those are by their nature called one at a time. But we would also like to call them in custom inventory scripts. Is it safe to assume mender-client will not call inventory scripts at the same time as state scripts (except sync and download, we don’t call any if the aforementioned commands in those)?

Thanks in advance.

Best Regards

Markus

1 Like

Yes, as far as artifact installation, state scripts and inventory scripts are concerned, the client is single threaded and will never call them at the same time. I believe that inventory scripts are only called in the idle loop, IOW they will not be called in between state scripts of an artifact installation either.

1 Like