taskIdToStaleStatusDaoIntKey static method

String taskIdToStaleStatusDaoIntKey(
  1. String taskId
)

Returns DaoInt key for "stale" task status.

When a task failed too often (e.g. 50 times), we "stale" it. When it's in a "stale" status, we don't run it anymore, but it's still visible in the background task page. Here, the user can stop it altogether (like any failed taks) or un-stale it.

Implementation

static String taskIdToStaleStatusDaoIntKey(String taskId) =>
    'taskStaleStatus:$taskId';