Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dont work with queue/job with database driver #129

Open
mjzavar opened this issue Mar 8, 2023 · 0 comments
Open

dont work with queue/job with database driver #129

mjzavar opened this issue Mar 8, 2023 · 0 comments

Comments

@mjzavar
Copy link

mjzavar commented Mar 8, 2023

hi
i use this package to create zoom meetings and it works fine
now i need to repeat meetings on daily bases , so i created a job and call that job via scheduler

protected function schedule(Schedule $schedule)
{
    $schedule->job(new ZoomJob())->everyMinute();
}

in my ZoomJob i have simple request to get a user and log it in database ApiReport table

public function handle()
{
    $user =  Zoom::user()->find("myuser@gmail.com");
    ApiReport::create([
        'title' =>'zoom getUser' ,
        'data' => json_encode([
            'user' => $user
        ])
    ]);
}

i was surprised to find my user in db log is null , after playing around with my code i found that if i change my queue driver to sync it works fine and i get the user ... but if i set the driver to database it wont work

any idea why this is happening ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant