Skip to content

No longer possible to see name/description for scheduled closure in schedule:list #41852

@ehamrin

Description

@ehamrin
  • Laravel Version: v9.7.0
  • PHP Version: 8.0.17
  • Database Driver & Version: Not applicable

Description:

Adding a description/name to CallbackEvent is ignored on the schedule:list command, the closure location is printed.

Seems to have broken by #41535

Steps To Reproduce:

Add the following in app/Console/Kernel.php

$schedule
	->call(function() {
		//Do stuff here
	})
	->name('My pretty description');

The following is printed when running php artisan schedule:list

* * * * *  Closure at: app\Console\Kernel.php:32 ................................................... Next Due: 34 seconds from now

Expected output is

* * * * *  My pretty description ................................................... Next Due: 34 seconds from now

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions