Skip to content

Async function doesn't work at all  #926

Open
@brianshen1990

Description

@brianshen1990

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions