Call atexit() handlers
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 95
- Avg merge
- 4d 21h
- Merged PRs (30d)
- 1
Description
Since tasktiger forks a subprocess per task, it should call atexit handlers so that applications can properly cleanup before exiting.
For example, right now if using Segment's analytics package (e.g. analytics.track(...)) within a TaskTiger task, you must remember to call analytics.flush(). https://segment.com/docs/sources/server/python/#how-do-i-flush-right-now-.
This however would be done automatically since Segment normally flushes on its own when atexit is called.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how tasktiger forks and exits the subprocess used for each task. Confirm how Python atexit handlers are registered and invoked, then verify that handlers run automatically when a task subprocess exits, removing the need for applications such as Segment to flush explicitly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100