Skip to content

Commit

Permalink
fix batchblockdelete job uniqueness
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine de Chevigné committed Jan 7, 2025
1 parent 768cdc3 commit e899f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run/jobs/workspaceReset.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = async (job) => {
const blockDeleteJobs = [];
for (let i = 0; i < blockIds.length; i += getMaxBlockForSyncReset())
blockDeleteJobs.push({
name: `batchBlockDelete-${data.workspaceId}-${i}-${i + getMaxBlockForSyncReset()}`,
name: `batchBlockDelete-${data.workspaceId}-${i}-${i + getMaxBlockForSyncReset()}-${new Date(data.from).getTime()}-${new Date(data.to).getTime()}`,
data: {
workspaceId: data.workspaceId,
ids: blockIds.slice(i, i + getMaxBlockForSyncReset())
Expand Down

0 comments on commit e899f6d

Please sign in to comment.