we currently have a custom app dependent on ERPNext v8.0.44 and Frappe v8.0.64
Every month, we trigger a task to bill about 1000 customers and remind them
every 7 days of unpaid invoices. When this task is triggered, a progress bar is
displayed to enable the user monitor the process.
'''Publish progress to UI.'''
show_progress = getattr(self,'show_progress',False)
percent = (start*100)/stop
The issue is when the value for gunicorn workers in common_site_config.json
is set to 1, the progress bar displays and updates as expected for most of the time
but the whole site remains in a sort of ‘task processing’ state ie no one can access the site
untill the task is done, but when the variable is increased from 1(to 2,3 and 4), the task still runs in
the background but the progress bar displays occasionally (sometimes never, until a refresh is done
multiple times on the page)
A solution/explanation for these behaviours would be appreciated.