actumn / celery.node

Celery task queue client/worker for nodejs

Home Page:https://celery-node.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for meta information

rightisleft opened this issue · comments

Description

  • What is the motivation / use case for changing the behavior?

This library should be interoperable with data produced from custom states:

Example here: https://www.distributedpython.com/2018/09/28/celery-task-states/

Given that Worker A needs to consume custom meta information produced by Worker B
When Worker A is looking at a Result
Then there should be a method that exposes an object such a { state: string, meta: any}

  • Proposed Behavior
    add Result.statusState(): { state: string, meta: any} { ... }
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

Writing custom states would need to conform to the expected interface in the python library and is likely out of scope for this request.