Skip to content

scheduler: last keyword doesn't allow job to be visible in status dir #2046

@bruno-at-bareos

Description

@bruno-at-bareos

Bareos component version

master commit cd9393b

Steps to reproduce

Create a schedule with the following parameters

Schedule {
  Name = "full_last_sunday"
  Description = "Should occur each last sunday of the month"
  Run = Level=Full last sunday at 00:30
}

Schedule {
  Name = "last_sunday"
  Description = "Should occur each last sunday of the month at 20"
  Run = Last Sunday at 20:00
}

check its existence after a reload on your director

status schedulers days=45

...
Sun 29-Dec-2024 00:30  full_last_sunday        Level=Full
Sun 29-Dec-2024 01:10  ai_cycle                Level=Incremental
Sun 29-Dec-2024 03:15  ai_consolidate          Level=Full
Sun 29-Dec-2024 07:00  catalog                 Level=Full
Sun 29-Dec-2024 20:00  last_sunday
Sun 29-Dec-2024 23:10  Odd Days
Mon 30-Dec-2024 01:10  ai_cycle                Level=Incremental
...

Attach the scheduler to a job
run status dir days=45


### Expected results

See the job appearing with `status dir days=45`


### Actual results

The job is not shown and not run.

### Environment

```markdown
- OS: ``
- component:

Relevant log output

No response

Relevant traces output

No response

Anything else?

No response

Metadata

Metadata

Labels

bugThis addresses a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions