New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Multiple tasks

Jon Roobottom September 20, 2014 by Jon Roobottom

Can I do this in my Tasks add-on...

public function define()
  {
    $this->add(120, 'getPhotos');//get new photos every 2 hours
    $this->add(360, 'getPhotosetsListing');//transform these into galleries every 6 hours
  }

Or am I limited to one? (I only as as the second task only fires if I comment out the first.

Ta.

Answered by Jason Varga!
>>>>>>> Answered <<<<<<<
2 Replies
1 Follower