Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cron]

The tag has no usage guidance.

1
vote
2answers
199 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 ...
1
vote
1answer
64 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 ...
1
vote
1answer
28 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....
1
vote
2answers
167 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 ...
1
vote
0answers
32 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 ...
1
vote
1answer
340 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/...
0
votes
1answer
1k 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 ...
4
votes
1answer
630 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)?
2
votes
2answers
50 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 ...
3
votes
2answers
482 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 ...
0
votes
1answer
133 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 ...