On Monday, October 10, 2016 at 11:33:52 AM UTC-4, Ivan Necas wrote: > > Lindani Phiri <[email protected] <javascript:>> writes: > > > Thanks Stephen! > > Will check it out. > > > > L. > > > > On Fri, Oct 7, 2016 at 12:49 PM, Stephen Benjamin <[email protected] > <javascript:>> > > wrote: > > > >> > >> > >> ----- Original Message ----- > >> > From: "Lindani Phiri" <[email protected] <javascript:>> > >> > To: "foreman-dev" <[email protected] <javascript:>> > >> > Sent: Friday, October 7, 2016 12:33:48 PM > >> > Subject: [foreman-dev] Plugin Job scheduling > >> > > >> > What options do we have scheduling jobs for a foreman plugin? > >> > > >> > The requirement I have is for some scheduler to trigger code in my > plugin > >> > at set intervals. > >> > > >> > >> https://github.com/theforeman/foreman-tasks > >> > >> There's a bunch of plugins that use it, including katello, > foreman_salt, > >> and > >> foreman_remote_execution. > > FYI: we are currently in process of getting even some Foreman core > things to run via foreman-tasks and we expect even more work to be done > in this area pretty soon. You can also checkout the remote execution > documentation on how it's being used right now [1] > > Could you talk more about your plugin requirements?
> [1] - > https://theforeman.org/plugins/foreman_remote_execution/0.3/index.html#3.2ExecutingaJob > Hi Ivan, Thanks for the additional info. My plugin requirement is quite simple - I need to have a job/task that runs in the background when the Foreman/Katello server is running. The task will periodically (e.g.. every 24 hours) call a remote API and based on the results execute actions such as send emails to users. Lindani > > -- Ivan > > >> > >> > >> You could also opt for rake tasks + cron jobs, if you need something > >> similar, which is what foreman core itself does. > >> > >> - Stephen > >> > >> -- > >> You received this message because you are subscribed to a topic in the > >> Google Groups "foreman-dev" group. > >> To unsubscribe from this topic, visit https://groups.google.com/d/ > >> topic/foreman-dev/VGBiJCoqf6I/unsubscribe. > >> To unsubscribe from this group and all its topics, send an email to > >> [email protected] <javascript:>. > >> For more options, visit https://groups.google.com/d/optout. > >> > > > > -- > > You received this message because you are subscribed to the Google > Groups "foreman-dev" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] <javascript:>. > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "foreman-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
