How can I retrieve the name of the next scheduled job?
Author: mdwyboCreated Jan 29, 2024Updated Apr 15, 2025
Hi. First, thanks for writing schedule, it has simplified a lot of work for me. One thing I would like to do is to retrieve the name of the next scheduled job. I can get the datetime the next job will run and how many seconds until it kicks off but I cannot figure out how to get its name. By name I mean either the name of the function it calls or some unique tag. Is this possible with the existing functionality? If not is there a workaround that will retrieve the next job’s name? Or is this something for a potential future release? If the latter I would be happy to write the use case, do the testing, and write the documentation, I’m just not capable of doing the coding. Thanks.
Source: dbader/schedule