Problem with lib CronJob


#1

Hi, I’m implementing a cron job with CronJob app and following all steps described in the documentation (including installing the application form Enonic Market), but my job is not running at all.
I tied a simple example that runs a job every 1 minute and only makes logs in the terminal. I also tried to execute different functions, but still nothing. The jobs folder was created inside resources and within the jobs folder, I created a job and registered it inside the jobs.xml file. Also, the app starts successfully.

Does anyone have any idea what could be causing this ?

Enonic version: 7.0.0
OS: Ubuntu 18


#2

Are you sure your app is deployed correctly? Do you get a notification in the XP log after your app is deployed?

I’ve just tried the same as what’s described in the docs and everything worked seamlessly after deploy.

Can you share your app structure via a screenshot and maybe content of myjob.js and job.xml?


#3

Hey, thanks for the reply.
I just found out that it doesnt work only on my machine. I installed the .jar in another environment and it works perfectly.
Still, i have no ideia why !


#4