Skip to content

Commit

Permalink
Merge pull request #575 from desci-labs/pending-submission-logs
Browse files Browse the repository at this point in the history
dont log for 0 queue pending
  • Loading branch information
hubsmoke authored Oct 18, 2024
2 parents b69729a + 7aa043e commit d12d846
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 d12d846

Please sign in to comment.