Category : sleep

I’m doing a server project involving the use of Kubernetes, Docker and VirtualBox. I have to create a container with phpmyadmin that’ll talk to two other containers having wordpress and MySQL in them. In the implementation I’m looking at as a reference, there’s a script given in this container’s Dockerfile CMD directive, which contains the ..

Read more

I have a python3 code that does something like this: import asyncio import time async def main(): while True: if should_end(): break # time.sleep(0.5) await asyncio.sleep(0.5) if __name__ == "__main__": asyncio.run(main()) I’ve tested it with time.sleep(0.5) and await asyncio.sleep(0.5) but for both cases it is using 100% of CPU. CONTAINER ID NAME CPU % MEM ..

Read more