Fix status of internal tasks
If they are put in scheduled (or pending) the scheduler tries to
schedule them, and since the fabrics know nothing of internal tasks
(like 'analyze-storage'), they error out almost immediately.
Now, as 'running' tasks, the scheduler skips them outright.
@@ -268,7 +268,7 @@ func (db *DB) CreateInternalTask(owner, op, tenant string) (*Task, error) {
(uuid, owner, op, status, tenant_uuid, log, requested_at)
VALUES
(?, ?, ?, ?, ?, ?, ?)`,
- id, owner, op, ScheduledStatus, tenant, "", time.Now().Unix())
+ id, owner, op, RunningStatus, tenant, "", time.Now().Unix())
if err != nil {
return nil, err
