Skip to content

Commit

Permalink
https://github.com/bonfire-networks/bonfire-app/issues/859
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Feb 20, 2024
1 parent 2eb66e4 commit 963dfb4
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions flavours/classic/config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,20 @@ config :bonfire, Oban,
# rescue orphaned jobs
{Oban.Plugins.Lifeline, rescue_after: :timer.minutes(60)},
{Oban.Plugins.Cron,
crontab: [
{"@daily", ActivityPub.Pruner.PruneDatabaseWorker, max_attempts: 1}
]}
crontab:
[
{"@daily", ActivityPub.Pruner.PruneDatabaseWorker, max_attempts: 1}
] ++
if Bonfire.Common.Extend.extension_enabled?(:bonfire_open_science) do
IO.puts(
"Open science publications will be fetched for all users at regular intervals."
)

[{"@hourly", Bonfire.OpenScience.APIs}]
else
IO.puts("Open science extension is not enabled")
[]
end}
]

config :activity_pub, Oban,
Expand Down

0 comments on commit 963dfb4

Please sign in to comment.