Can gearman be setup like cron?

74 views
Skip to first unread message

Terry Riegel

unread,
Feb 10, 2021, 1:54:01 PM2/10/21
to Gearman
I am looking for something that works like cron but can be invoked immediatly. I have tried backgrounding tasks but that gets messy because the backgrounded task is still held captive by the invoking foreground task.

Does gearman work like cron but with immediate invocation of a job?

Thanks,

Terry Riegel

James D Bearden

unread,
Feb 10, 2021, 2:06:58 PM2/10/21
to gea...@googlegroups.com

I am definitely not an expert on gearman, but as I understand it the main difference between foreground and background tasks is that foreground tasks maintain a connection to the task and returns a value. There is also a way to set tasks as high priority so that it gets processed before other tasks. Not really sure what you are asking but what I do with some of my tasks is I write in such a way so that they can either be run directly or run by a task. So there is sort of a stub that gearman deals with but it hands of to a regular old perl subroutine to do the heavy lifting that can be invoked directly. Good luck.

James

--
You received this message because you are subscribed to the Google Groups "Gearman" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gearman+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gearman/7c64d72f-bbf9-4e14-aefc-b7017d683571n%40googlegroups.com.
-- 
James D Bearden
ja...@nontrivial.org

Clint Byrum

unread,
Feb 10, 2021, 5:39:02 PM2/10/21
to gea...@googlegroups.com
It's really hard to answer this without a concrete description.

Can you explain what you're trying to accomplish, rather than how you're trying to accomplish it?

--
Reply all
Reply to author
Forward
0 new messages