Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

atexit doesn’t work properly in batch mode: "cannot schedule new futures after interpreter shutdown" #644

Open
Labels
bugSomething isn't working
@bfontaine

Description

@bfontaine

Hello,

Specifications

  • Client Version: 1.41.0
  • InfluxDB Version: 2.7.5
  • Platform: Ubuntu 23.10

Code sample to reproduce problem

importatexitfrominfluxdb_clientimportInfluxDBClient,Pointinfluxdb=InfluxDBClient(url="...",token="...",org="...")write_api=influxdb.write_api()@atexit.registerdefclose():print("closing")write_api.close()influxdb.close()write_api.write("<bucket>",record=Point("test_bf").field("test",1))

Expected behavior

Expected output:

closing

Actual behavior

Actual output:

The batch item wasn't processed successfully because: cannot schedule new futures after interpreter shutdownclosing

As you can see theatexit handler is executed, but the error happens before.

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp