harmonytask: doc fixes

This commit is contained in:
Andrew Jackson (Ajax) 2023-08-18 12:53:03 -05:00
parent 6cdecf60d9
commit d732a7b747
2 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,6 @@
/*
Package harmomnytask implements a pure (no task logic), distributed
task manager. This clean interface allows a task implementer to completely
Package harmonytask implements a pure (no task logic), distributed
task manager. This clean interface allows a task implementer to completely
avoid being concerned with task scheduling and management.
It's based on the idea of tasks as small units of work broken from other
work by hardware, parallelizabilty, reliability, or any other reason.
@ -43,7 +42,7 @@ but the design **requires** extraInfo tables to grow until the task's
info could not possibly be used by a following task, including slow
release rollout. This would normally be in the order of months old.
*
Other possible enhancements include more collaboative coordination
Other possible enhancements include more collaborative coordination
to assign a task to machines closer to the data.
__Database_Behavior__

View File

@ -206,7 +206,7 @@ func (e *TaskEngine) GracefullyTerminate(deadline time.Duration) {
deadlineChan := time.NewTimer(deadline).C
// block bumps & follows by unreg from DBs.
_, err := e.db.Exec(context.Background(), `DELETE FROM harmony_task_impl WHERE owner_id=$1`, e.ownerID)
_, err := e.db.Exec(context.TODO(), `DELETE FROM harmony_task_impl WHERE owner_id=$1`, e.ownerID)
if err != nil {
log.Warn("Could not clean-up impl table: %w", err)
}