Skip to content

Commit

Permalink
dont log for 0 queue pending
Browse files Browse the repository at this point in the history
  • Loading branch information
hubsmoke committed Oct 17, 2024
1 parent 8a58fc3 commit 7aa043e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desci-server/src/workers/doiSubmissionQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const pingDoi = async (doi: string) => {
*/
export const onTick = async () => {
const pendingSubmissions = await doiService.getPendingSubmissions();
logger.info({ pendingSubmissions }, 'pending submission');
if (pendingSubmissions.length === 0) return;
logger.info({ pendingSubmissions }, 'pending submission');
const processed = await asyncMap(pendingSubmissions, async (job) => {
const isResolved = await pingDoi(job.uniqueDoi);
if (isResolved) {
Expand Down

0 comments on commit 7aa043e

Please sign in to comment.