Skip to main content

Questions tagged [cron]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
13 views

How to schedule custom command that executes every hour

I created a custom command to print logs. Now I want to schedule that command to execute every hour. Can any one give me a step-by-step process to achieve that? I am new to craft CMS. Craft CMS ...
Dipesh C's user avatar
1 vote
1 answer
71 views

What is the best way to automatically add a job (queue) every day?

I would like to add a daily job that updates data. I have the following code: Event::on( Controller::class, Controller::EVENT_BEFORE_ACTION, static function (ActionEvent $event) { ...
antdev's user avatar
  • 137
0 votes
1 answer
273 views

Schedule plugin not working for Feed Me plugin

I have created a schedule to run the 'Feed Me' every 1 minute using the plugin 'Schedule', but it doesn't work. I not sure am I using the correct setting or not. I manage to get the latest data if I ...
Lee's user avatar
  • 139
1 vote
1 answer
242 views

How to automatically remove entries after a certain time?

I haven't found anything similar to this. But I was wondering if it's possible to delete certain entries after a certain time? For example: User fills in form and adds contact entry - after 2 weeks ...
Geestig's user avatar
  • 11
2 votes
1 answer
456 views

Is it possible to execute ./craft via cron?

I'm trying to execute Craft 3.3.X CLI commands via cron. I can execute ./craft from ssh no problem, but the same type of commands triggered via cron do not execute. These command works via SSH: # cd ...
thisanimus's user avatar
1 vote
1 answer
754 views

Action route not available from URL. What do I have wrong?

I built a plugin for Craft 3 and need to run one of its actions via CRON. I know I can set this up as a console command, and will do that, but before I get there, I'd like to solve this issue. I ...
Chad Crowell's user avatar
2 votes
2 answers
3k views

Craft 3: Cron job to run Controller actionIndex method of a Plugin

I have made a Craft 3 plugin that is manually used in the Craft Admin CP area; click a button and we sync products in Craft with a Shopify API. Now I am trying to automate the process. I would like ...
Josh Kautz's user avatar
1 vote
1 answer
204 views

Why when a task is marked as “Stalled” the following tasks can't automatically processed?

This is annoying to have to click on “Try again” to unlock the queued tasks. This could leads to dozen and dozen of stucked tasks that usually could be processed without any problem (like the ...
Romain P.'s user avatar
  • 1,852
1 vote
1 answer
40 views

FeedMe Direct Feed Link not showing in CP

The FeedMe docs state that there is a Direct Feed Link for cron usage. I'm not seeing it. All I see is the Debug, Status and Delete icon. Or is this a PRO feature? I'using Craft 2.6.x and FeedMee 2.0....
Sharkbyte's user avatar
1 vote
2 answers
275 views

Calling plugin controller externally fails with 500 error

UPDATE: Question edited to be clearer. I had an issue where it seems calling a plugin’s controller via an URL caused the site itself to throw a 500 error (i.e. not being accessible at all). The ...
KSP's user avatar
  • 849
1 vote
0 answers
46 views

What is a good approach for building an aggregated newsletter?

I would like to auto create a an aggregated newsletter each month based on Craft content and have Mailchimp deliver it via their API. It doesn't need to be complicated so I was wondering whether a ...
joomkit's user avatar
  • 2,034
1 vote
1 answer
765 views

Call Craft controller with cron job

I am making a plugin which has a controller to be called every hour. My server environment is using Anacron. So I wrote this anacron job: 1@hourly 0 cron.hourly wget http://www.mydomain.com/actions/...
Miguel Bocquier's user avatar
0 votes
1 answer
2k views

Craft TaskService Overview/Cron Job

I am trying to get my head around the TaskService that Craft comes with. I want to create a task that periodically (say every 15 minutes) uses the Twitter API. I am currently creating a task modeled ...
9er's user avatar
  • 179
4 votes
1 answer
1k views

Recurring Scheduled Tasks in Craft

Is it possible to have a task (defined in a plugin) be scheduled in Craft to run on a recurring basis without having to use cron? If so, where do I put those settings (eg, to run a task hourly)?
Adam Fairbanks's user avatar
2 votes
2 answers
58 views

How do I make a service only runable by the server?

I've created an action that calls a service. The action will be called by a cron task. I want to set this up so that ONLY the cron task can call the action. It's important that it can not be run by ...
H2ONOCK's user avatar
  • 231
3 votes
2 answers
1k views

$allowAnonymous = true - not working

I want to be able to access a plugin page without having to login (for a cron job). I have added this to the plugin's controller: protected $allowAnonymous = true; However, this url still requires ...
Adam Fairbanks's user avatar
0 votes
1 answer
238 views

Running custom query save result to xml file

For an upcoming project one of the requests is that the client needs to be able to run a few custom queries on a specific section (queries are fixed, we know what these will be in advance) and then ...
erwinheiser's user avatar