Documentation ¶
Index ¶
- func ListenAndHandleOnDemandJobs(apiClient api.Client, pub, sub *pubsub.RabbitMQ, queue, exchange string, ...)
- func ListenAndHandleScheduledJobs(apiClient api.Client, pub *pubsub.RabbitMQ, c *cron.Cron)
- func ListenAndHandleSchedules(apiClient api.Client, sub *pubsub.RabbitMQ, schedulesQueue, exchange string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndHandleOnDemandJobs ¶
func ListenAndHandleOnDemandJobs(apiClient api.Client, pub, sub *pubsub.RabbitMQ, queue, exchange string, done chan<- error)
ListenAndHandleOnDemandJobs handles on-demand jobs (jobs arriving via a VCS webhook or from the UI directly).
func ListenAndHandleScheduledJobs ¶
ListenAndHandleScheduledJobs handles scheduled jobs (jobs starting from a cron job). It regularly polls for schedules to detect which ones have not yet been submitted and submits cron jobs for those schedules that have not yet been setup to run.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.