Skip to content

Is There Any Way to set timeout on jaydebeapi execute? #157

@panickery

Description

@panickery
   conn = jaydebeapi.connect(
       conf_dict['jdbc_driver_class'],`
       conf_dict['jdbc_connection_string'],
       [db_id, db_pw],     
       conf_dict['jdbc_driver_library'] )

    logging.debug('CONNECT_SUCCESS!')
    cur = conn.cursor()
    logging.debug('BEFORE EXECUTE!')
    logging.debug('EXECUTE QUERY :: {}'.format(query))
    cur.execute(query)
    logging.debug('AFTER EXECUTE!')  <-- not printed

I always thanks for jaydebeapi.
above code is in my script
most time this script works well, but some big query doen'st work well
query execute never ends and the process of python script too.
so I want set timeout to execute, How can i set timeout on 'execute'?
thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions