Open sumitServicenet opened 7 months ago
You need to do something on the main thread. If the main thread exits, on some platforms/environments the entire program exits. It can be as simple as adding inp = input('Press any key to exit')
to the last line of your main()
Dear Sir,
Requested to mail us at breezeapi@icicisecurities.com.
class Command(BaseCommand): def handle(self, *args: Any, **options: Any):
I have a Django management command located in the management/commands folder. When I run this file using python3 manage.py file_name in my virtual environment, the on_ticks callback function is not getting called, and no data is printed. However, the code works fine in my local environment. The virtual environment is active during the file execution, and all required packages are installed. What could be causing the on_ticks function not to execute in the virtual environment?