scheduler

package
v0.0.0-...-5c85971 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

  • scheduler.go: Orchestrates timed data fetching tasks using Google Cloud Scheduler.
  • Usage:
  • - Configures and initiates scheduled jobs that trigger data retrieval and processing tasks.
  • - Ensures tasks are executed at specified intervals, handling retries and logging as necessary.
  • - Utilizes cron syntax to define job schedules.

* Dependencies:

  • - Requires external scheduling APIs or local cron services.
  • - Interacts with client modules (e.g., satellite.go, weather.go, soil.go) to set up data fetch operations.
  • - Uses service modules (e.g., imageservice.go, soildataservice.go) to process and store the fetched data.
  • Author(s): Shannon Thompson
  • Created on: 04/12/2024

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchedulerClient

type SchedulerClient struct {
	Client *scheduler.CloudSchedulerClient
	Cfg    *config.Config
}

func NewSchedulerClient

func NewSchedulerClient(ctx context.Context, cfg *config.Config) (*SchedulerClient, error)

func (*SchedulerClient) DeleteJob

func (sc *SchedulerClient) DeleteJob(ctx context.Context, jobName string) error

func (*SchedulerClient) SetupJobs

func (sc *SchedulerClient) SetupJobs(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL