Homec4science

Move completed tasks to an "archive" table and delete them in the GC

Authored by epriestley <git@epriestley.com> on Oct 31 2012, 23:22.

Description

Move completed tasks to an "archive" table and delete them in the GC

Summary:
Currently, when taskmasters complete a task it is immediately deleted. This prevents us from doing some general things, like:

  • Supporting the idea of permanent failure (e.g., after N failures just stop trying).
  • Showing the user how fast taskmasters are completing tasks.
  • Showing the user how long tasks took to complete.

Having better visibility into this is important to Drydock, which builds on the task system. Also, generally buff debug output for task execution.

Test Plan: Ran bin/phd debug taskmaster. Ran bin/phd debug garbage. Queued some tasks via various systems.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2015

Differential Revision: https://secure.phabricator.com/D3852

Details

Committed
epriestley <git@epriestley.com>Oct 31 2012, 23:22
Pushed
aubortJan 31 2017, 17:16
Parents
rPH4edf8ae2fcb9: make "browse in diffusion" action work for commits in branches other than master
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH5903ed650c20: Move completed tasks to an "archive" table and delete them in the GC (authored by epriestley <git@epriestley.com>).Oct 31 2012, 23:22