Skip to content

Define priority semantics #29

@RealOrangeOne

Description

@RealOrangeOne

The priority field is currently an opaque positive integer. As currently implemented:

  • "Higher priority" (ie more urgent) is encoded as a greater priority value
  • Tasks which don't define a priority are set as 0.

This presents a few issues:

  • The maximum value is unbounded, which could cause issues with different database backends
  • It's not possible to define a task as being lower priority than the default (without defining your own default and using it across your application (which doesn't work for external tasks))

Therefore, the scale needs to be better defined:

  • How many increments are needed? 10, 50, 100, 1000 etc
  • How are lower-than-default priority tasks encoded? Use 0 as the default and support negative? Set the default as half way through the range?

Metadata

Metadata

Assignees

Labels

tasks-apiIssues relating to the tasks API and general API contract from the library

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions