group_requests

boulderopal.cloud.group_requests()

Create a context manager for executing multiple function calls over available machines.

Returns

A context manager to collect and run computation requests.

Return type

ContextManager

Notes

All grouped calculations must be independent from each other.

Within the context manager, the object returned from each request is a placeholder. When exiting, the context manager waits until all calculations have finished, hence this command blocks execution. When all results are received, the placeholders are replaced with them.

Read the Computational resources in Boulder Opal topic for more information about this feature.

Was this useful?