Skip to content

Scheduler inilization failed #1465

Answered by kaplanelad
thaarrtt asked this question in Q&A
May 31, 2025 · 5 comments · 14 replies
Discussion options

You must be logged in to vote

Use an env var like the following:

SCHEDULER_CONFIG=config/scheduler.yaml cargo loco start --all

and see the scheduler.yaml content

❯ cat config/scheduler.yaml
  # Location of shipping the command stdout and stderr.
  output: stdout
  # A list of jobs to be scheduled.
  jobs:
    # The name of the job.
    write_content:
      # by default false meaning executing the the run value as a task. if true execute the run value as shell command
      shell: true
      # command to run
      run: "echo loco >> ./scheduler.txt"
      # The cron expression that defines the job's schedule.
      schedule: run every 1 second
      output: silent
      tags: ['base', 'infra']

    run_task:
      run…

Replies: 5 comments 14 replies

Comment options

You must be logged in to vote
6 replies
@thaarrtt
Comment options

@kaplanelad
Comment options

@thaarrtt
Comment options

@kaplanelad
Comment options

@thaarrtt
Comment options

Comment options

You must be logged in to vote
2 replies
@kaplanelad
Comment options

@thaarrtt
Comment options

Comment options

You must be logged in to vote
2 replies
@kaplanelad
Comment options

@thaarrtt
Comment options

Comment options

You must be logged in to vote
4 replies
@thaarrtt
Comment options

@kaplanelad
Comment options

Answer selected by thaarrtt
@thaarrtt
Comment options

@kaplanelad
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants