Update job:list, and change "subject" to "jobname"
This commit is contained in:
parent
0c4c2f8cf5
commit
f13d3396ce
@ -39,7 +39,7 @@ class JobList extends Command
|
|||||||
$o->uuid,
|
$o->uuid,
|
||||||
$o->id,
|
$o->id,
|
||||||
$o->display_name,
|
$o->display_name,
|
||||||
$o->command->subject,
|
$o->command->jobname,
|
||||||
$o->attempts,$o->maxTries,
|
$o->attempts,$o->maxTries,
|
||||||
$o->available_at ?: '-',
|
$o->available_at ?: '-',
|
||||||
$o->attempts ? sprintf(' (Created:%s)',$o->created_at) : ''
|
$o->attempts ? sprintf(' (Created:%s)',$o->created_at) : ''
|
||||||
|
@ -50,7 +50,7 @@ class AddressPoll implements ShouldQueue, ShouldBeUnique
|
|||||||
case 'address':
|
case 'address':
|
||||||
return $this->ao;
|
return $this->ao;
|
||||||
|
|
||||||
case 'subject':
|
case 'jobname':
|
||||||
return $this->ao->ftn;
|
return $this->ao->ftn;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -125,7 +125,7 @@ class AddressPoll implements ShouldQueue, ShouldBeUnique
|
|||||||
}
|
}
|
||||||
|
|
||||||
} catch (SocketException $e) {
|
} catch (SocketException $e) {
|
||||||
Log::error(sprintf('%s:! Unable to connect to [%s]: %s',self::LOGKEY,$this->ao->ftn,$e->getMessage()));
|
Log::error(sprintf('%s:! SocketException Unable to connect to [%s]: %s',self::LOGKEY,$this->ao->ftn,$e->getMessage()));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
} catch (\ErrorException $e) {
|
} catch (\ErrorException $e) {
|
||||||
|
@ -47,7 +47,7 @@ class EchoareaImport implements ShouldQueue
|
|||||||
public function __get($key): mixed
|
public function __get($key): mixed
|
||||||
{
|
{
|
||||||
switch ($key) {
|
switch ($key) {
|
||||||
case 'subject':
|
case 'jobname':
|
||||||
return sprintf('%s-%s',$this->do->name,$this->file);
|
return sprintf('%s-%s',$this->do->name,$this->file);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -47,7 +47,7 @@ class FileareaImport implements ShouldQueue
|
|||||||
public function __get($key): mixed
|
public function __get($key): mixed
|
||||||
{
|
{
|
||||||
switch ($key) {
|
switch ($key) {
|
||||||
case 'subject':
|
case 'jobname':
|
||||||
return sprintf('%s-%s',$this->do->name,$this->file);
|
return sprintf('%s-%s',$this->do->name,$this->file);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -41,8 +41,9 @@ class MessageProcess implements ShouldQueue
|
|||||||
public function __get($key): mixed
|
public function __get($key): mixed
|
||||||
{
|
{
|
||||||
switch ($key) {
|
switch ($key) {
|
||||||
case 'subject':
|
case 'jobname':
|
||||||
return sprintf('%s-%s-%s',$this->pktname,$this->mo->set->get('set_sender')->ftn,$this->mo->msgid);
|
$mo = unserialize($this->mo);
|
||||||
|
return sprintf('%s-%s-%s',$mo->set->get('set_pkt'),$mo->set->get('set_sender')->ftn,$mo->msgid);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -58,7 +58,7 @@ class NodelistImport implements ShouldQueue
|
|||||||
public function __get($key): mixed
|
public function __get($key): mixed
|
||||||
{
|
{
|
||||||
switch ($key) {
|
switch ($key) {
|
||||||
case 'subject':
|
case 'jobname':
|
||||||
return sprintf('%s-%s',$this->domain?->name,is_object($this->file) ? $this->file->name : $this->file);
|
return sprintf('%s-%s',$this->domain?->name,is_object($this->file) ? $this->file->name : $this->file);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -44,7 +44,7 @@ class PacketProcess implements ShouldQueue
|
|||||||
public function __get($key): mixed
|
public function __get($key): mixed
|
||||||
{
|
{
|
||||||
switch ($key) {
|
switch ($key) {
|
||||||
case 'subject':
|
case 'jobname':
|
||||||
return $this->filename;
|
return $this->filename;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -42,7 +42,7 @@ class TicProcess implements ShouldQueue
|
|||||||
public function __get($key): mixed
|
public function __get($key): mixed
|
||||||
{
|
{
|
||||||
switch ($key) {
|
switch ($key) {
|
||||||
case 'subject':
|
case 'jobname':
|
||||||
return sprintf('%s %s',$this->do?->name,$this->file);
|
return sprintf('%s %s',$this->do?->name,$this->file);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user