laravel horizon

This commit is contained in:
2019-05-14 04:39:55 +00:00
parent b20bde1f56
commit 34e42d3846
464 changed files with 57914 additions and 69 deletions
@@ -0,0 +1,41 @@
<?php
namespace Laravel\Horizon\Contracts;
interface ProcessRepository
{
/**
* Get all of the orphan process IDs and the times they were observed.
*
* @param string $master
* @return array
*/
public function allOrphans($master);
/**
* Record the given process IDs as orphaned.
*
* @param string $master
* @param array $processIds
* @return array
*/
public function orphaned($master, array $processIds);
/**
* Get the process IDs orphaned for at least the given number of seconds.
*
* @param string $master
* @param int $seconds
* @return array
*/
public function orphanedFor($master, $seconds);
/**
* Remove the given process IDs from the orphan list.
*
* @param string $master
* @param array $processIds
* @return void
*/
public function forgetOrphans($master, array $processIds);
}