Skip to content

Conversation

@archanaserver
Copy link
Contributor

@archanaserver archanaserver commented Nov 27, 2025

Depends on theforeman/foreman#10784

  • Update foreman_recurring_tasks defaults to define 4 generic
    timers:
    • hourly → cron:hourly
    • daily → cron:daily
    • weekly → cron:weekly
    • monthly → cron:monthly
  • Keep ldap:refresh_usergroups as a separate recurring job with
    its existing OnCalendar expression, since it runs every 30
    minutes and does not fit cleanly into the hourly/daily/weekly
    buckets yet.

@archanaserver
Copy link
Contributor Author

Now that Foreman core provides cron:hourly, cron:daily, cron:weekly and cron:monthly rake tasks theforeman/foreman#10784, foremanctl can use those as generic entrypoints for recurring jobs instead of wiring individual rake tasks.

@evgeni
Copy link
Member

evgeni commented Nov 27, 2025

marked as draft, as core patch is not in yet

@archanaserver archanaserver force-pushed the foreman-recurring-jobs branch from 58feb8e to d0abe1e Compare December 3, 2025 10:40
@archanaserver
Copy link
Contributor Author

@evgeni now that #288 is merged, we can look for this one and theforeman/foreman#10784?


- instance: ldap-refresh_usergroups
rake: "ldap:refresh_usergroups"
schedule: "*-*-* *:00,30:00"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it be sufficient to run this hourly too?

👀 @adamruzicka

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so, yes.

@archanaserver archanaserver marked this pull request as ready for review December 3, 2025 10:42
@evgeni
Copy link
Member

evgeni commented Dec 3, 2025

@evgeni now that #288 is merged, we can look for this one and theforeman/foreman#10784?

Yes!

Comment on lines 40 to 42
- instance: ldap-refresh_usergroups
rake: "ldap:refresh_usergroups"
schedule: "*-*-* *:00,30:00"
schedule: "hourly"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be now added to con:hourly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants