krydos / PHPNotifier

PHPNotifier - task scheduler
MIT License
15 stars 3 forks source link

how i can use this in Cloud Foundry app. #1

Open ajitrishabh opened 5 years ago

ajitrishabh commented 5 years ago

how i can use this in Cloud Foundry app?

krydos commented 5 years ago

hi @ajitrishabh, I guess you can just include it in your composer.json and it should work. Check Cloud Foundry docs about it.

ajitrishabh commented 5 years ago

great @KryDos Thanks for the quick reply.

if i want to run some code/function at 10 am every day then how i can do this in PHPNotifier?

krydos commented 5 years ago

this library is implemented about 3 years ago and there are no updated since then, but as far as I remember there is no way to schedule periodic jobs. Just no such feature.

ajitrishabh commented 5 years ago

can you guide me how i can do this in cloud foundry (CF) app. any other library which i can use. because there is no way to use cron job in CF.

krydos commented 5 years ago

hey @ajitrishabh unfortunately I can't really guide you toward CF because I never used it. What I could find it is their Task Mechanism but it's still required to have cron job somewhere else to trigger a task.

As far as I got CF is build all around containers so why can't you use Cron?

ajitrishabh commented 5 years ago

Hi Ruslan, actually i am also new in CF. i found this link in CF Buildpack https://github.com/cloudfoundry/php-buildpack/issues/17

but i really don't know how i do this. for this i need your expertise. i do not have access to cron tab ( maybe i don't know how to access cron tab in CF container)