Open
Description
Problem:
Updating 20 cases without async takes about 100 seconds .
So I try async, But the total time doesn't change at all, and every update still makes me wait about 5 seconds. It should be faster, right?
Belowing is how i use async function.
### How i init:
_jiraConnection = JIRA(
options={
'server': config.JiraServer(),
'verify': False,
},
basic_auth=(
config.JiraUser(),
config.JiraPwd(),
),
async_=True,
async_workers=10
)
### How i update
jiraIssue.update( description = description,
fields= {f'{config.JiraMANUAl_INSPECTION_ID()}': config.JiraMANUAL_INSPECTION_NO() },
async_=True)
### Every 10 tasks, I will call
def do_all_async_jobs():
jira = get_connection()
jira.async_do()
Doesn't work at all, so could anyone help?