Skip to content

Conversation

@r1tsuu
Copy link
Member

@r1tsuu r1tsuu commented Nov 17, 2024

Ensures that the deleteJobOnComplete (which is true by default) property works properly

@r1tsuu r1tsuu changed the title fix: ensure deleteJobOnComplete: true works fix: ensure deleteJobOnComplete property for jobs works Nov 17, 2024
Comment on lines +225 to +228
collection: 'payload-jobs',
req,
where: { id: { in: jobsToDelete } },
})
Copy link
Member Author

@r1tsuu r1tsuu Nov 17, 2024

Choose a reason for hiding this comment

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

Might want to batch that delete by 100 or something, I guess that's in memory db issue
image

@denolfe denolfe removed the v3 label Nov 19, 2024
@DanRibbens DanRibbens merged commit 7eb388d into main Nov 25, 2024
53 checks passed
@DanRibbens DanRibbens deleted the fix/delete-jobs-on-completed branch November 25, 2024 14:11
@github-actions
Copy link
Contributor

🚀 This is included in version v3.1.1

@yonnic
Copy link

yonnic commented Nov 26, 2024

isnt this flag supposed to make the jobs re-run on each /api/payload-jobs/run call if set to false ?
for me the jobs still only run once and never again after finished

kendelljoseph pushed a commit that referenced this pull request Feb 21, 2025
Ensures that the `deleteJobOnComplete` (which is `true` by default)
property works properly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants