streamingsystems
1 month ago

Getting Job Id

Posted 1 month ago by streamingsystems

Hi,

I am interested in getting the job id (database connection) for jobs.

I am seeing some discrepancies and wanted to get some input:

These give me an id:

$id = Bus::dispatch(new TestJob()); $Id = dispatch(new TestJob());

But this just returns a PendingDispatch with the id = null

TestJob::dispatch();

Thanks!

-Rob

Please sign in or create an account to participate in this conversation.