daycry / cronjob

- Manage Cron jobs in Codeigniter 4
MIT License
64 stars 20 forks source link

Class 'Cron\CronExpression' not found #6

Closed jadsy2107 closed 2 years ago

jadsy2107 commented 2 years ago

I followed your steps, namely:

Downloaded and unzip to ThirdParty/

the psr4 added:

    'Daycry\CronJob' => APPPATH .'ThirdParty/cronjob/src'

But I get error when i run this command: php spark cronjob:list

Class 'Cron\CronExpression' not found

jadsy2107 commented 2 years ago

i fixed it, had to run compose require command in root of project

jadsy2107 commented 2 years ago

Now I have an issue with url cronJob .. its not working? Does it check server certificate ?

jadsy2107 commented 2 years ago

Now I have an issue with url cronJob .. its not working? Does it check server certificate ?

Again fixed the issue, my hosting server ca was not up to date. curl request was failing, fixed! Please close this issue, great project thank you.!

jadsy2107 commented 2 years ago

Ok, so far this is the only issue remaining which I think is a bug, The cronjob log shows duration of 3 minutes, when in fact it ran for 3 seconds, see below:

2022-06-13 16:45:01 | 2022-06-13 16:45:04 | 00:03:00

Set to log to database

jadsy2107 commented 2 years ago

Also, cronjob log 'output' field is always empty, even though my scheduled command returns data.

pietos commented 1 year ago

I followed your steps, namely:

Downloaded and unzip to ThirdParty/

the psr4 added:

    'Daycry\CronJob' => APPPATH .'ThirdParty/cronjob/src'

But I get error when i run this command: php spark cronjob:list

Class 'Cron\CronExpression' not found

I had the same, you don't have to run the composer in the root, solution is to update ci4 to the latest version and make sure you overwrite your spark file

daycry commented 1 year ago

I recommended install this vendor with composer, because you need CronExpression library. Or install it manually downloading like cronjob vendor.

On Thu, 4 May 2023, 08:49 pietos, @.***> wrote:

I followed your steps, namely:

Downloaded and unzip to ThirdParty/

the psr4 added:

'Daycry\CronJob' => APPPATH .'ThirdParty/cronjob/src'

But I get error when i run this command: php spark cronjob:list

Class 'Cron\CronExpression' not found

I had the same, you don't have to run the composer in the root, solution is to update ci4 to the latest version and make sure you overwrite your spark file

— Reply to this email directly, view it on GitHub https://github.com/daycry/cronjob/issues/6#issuecomment-1534175473, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZ5DP2EM3T6KNPZOFJW5N3XENGO7ANCNFSM5YS6VWQQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>