You are here

public static function MaestroEngine::archiveTask in Maestro 3.x

Same name and namespace in other branches
  1. 8.2 src/Engine/MaestroEngine.php \Drupal\maestro\Engine\MaestroEngine::archiveTask()

ArchiveTask Archives the queue record by setting the archive bit to true/1.

Parameters

int $queueID: The Maestro Queue ID.

1 call to MaestroEngine::archiveTask()
MaestroEngine::cleanQueue in src/Engine/MaestroEngine.php
CleanQueue method This is the core method used by the orchestrator to move the process forward and to determine assignments and next steps.

File

src/Engine/MaestroEngine.php, line 511

Class

MaestroEngine
Class MaestroEngine.

Namespace

Drupal\maestro\Engine

Code

public static function archiveTask($queueID) {
  $queueRecord = \Drupal::entityTypeManager()
    ->getStorage('maestro_queue')
    ->load($queueID);
  $queueRecord
    ->set('archived', 1);
  $queueRecord
    ->save();
}