Skip to content

Terminate job implementation for gevent concurrency backend #8687

Closed

Description

@azulzaietz

Checklist

  • I have checked the issues list
    for similar or identical feature requests.
  • I have checked the pull requests list
    for existing proposed implementations of this feature.
  • I have checked the commit log
    to find out if the same feature was already implemented in the
    main branch.
  • I have included all related issues and possible duplicate issues
    in this issue (If there are none, check this box anyway).

Related Issues and Possible Duplicates

Related Issues

Possible Duplicates

Brief Summary

Current implementation of TaskPool which is based on gevent library does not support terminating jobs.
Revoking with terminate=True or terminating task raises NotImplementedError: <class 'celery.concurrency.gevent.TaskPool'> does not implement kill_job exception while task continues to run.

Design

Modify the celery/concurrency/gevent.py file following the changes made in celery/concurrency/eventlet.py file for implementing the same feature.

Architectural Considerations

None

Proposed Behavior

Proposed UI/UX

Diagrams

N/A

Alternatives

None

Activity

  1. HungPhann commented on Dec 5, 2023

    @HungPhann

    +1

  2. zwwangoo commented on Jan 29, 2024

    @zwwangoo

    +1

  3. mixtah commented on Mar 20, 2024

    @mixtah

    +1

  4. thedrow commented on Aug 18, 2024

    @thedrow
    Contributor

    This is already done in #9083.

  5. added this to the 5.5 milestone on Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions