Skip to content

Worker: stop polling for tasks, start pushing #1116

@benoit74

Description

@benoit74

Currently, workers are polling the API for new tasks to start.

This has the consequence that we have significant traffic to the API linked to this polling. It is a kind of hack. And it seems to be a bit unstable under some conditions (some workers seems to take way more time to start a requested task than others).

One might want to consider (again) pushing tasks to worker. We used sloppy in the past but had to remove it for infrastructure issues reasons.

For this task to be ready to be developed, we need to analyze:

  • which push solution do we want to implement, and how will it work in our existing infrastructure
  • will there be a real "gain" in terms of traffic, since we need anyway to have worker update their running tasks status on a regular basis
  • will there be a real "gain" in terms of stability, since push solution is probably a bit more complex than polling

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions