Code typically is loaded before a fork occurs in frameworks such as Celery or multiprocessing. As a result, the code is imported into the parent process instead of the child, launching the agent. Since the agent is launched in the parent process, no data is collected in the child process.