Make sure the empty-trash task is started for all collectives

This commit is contained in:
eikek
2021-08-14 20:10:42 +02:00
parent 50706c3d6d
commit 27fd7a5867
6 changed files with 55 additions and 15 deletions

View File

@ -185,7 +185,7 @@ object OCollective {
None,
EmptyTrashArgs(coll)
)
_ <- uts.updateOneTask(AccountId(coll, EmptyTrashArgs.taskName), ut)
_ <- uts.updateOneTask(AccountId(coll, coll), ut)
_ <- joex.notifyAllNodes
} yield ()
@ -215,7 +215,7 @@ object OCollective {
CalEvent(WeekdayComponent.All, DateEvent.All, TimeEvent.All),
None,
EmptyTrashArgs(collective)
).encode.toPeriodicTask(AccountId(collective, EmptyTrashArgs.taskName))
).encode.toPeriodicTask(AccountId(collective, collective))
job <- ut.toJob
_ <- queue.insert(job)
_ <- joex.notifyAllNodes