Skip to content

fix: add cron job for autopublish#6359

Merged
KrissDrawing merged 28 commits into
mainfrom
6213/Autopublish-cron-job
Jun 10, 2026
Merged

fix: add cron job for autopublish#6359
KrissDrawing merged 28 commits into
mainfrom
6213/Autopublish-cron-job

Conversation

@KrissDrawing

Copy link
Copy Markdown
Collaborator

This PR addresses #6213

  • Addresses the issue in full
  • Addresses only certain aspects of the issue

Description

Review after #6181
Adds publish listing cron job that will publish listing when in scheduled state and scheduledPublishedAt date is in the past.

How Can This Be Tested/Reviewed?

I added some quicker strings sth like:

LISTING_SCHEDULED_PUBLISH_CRON_STRING=* * * * *
LISTING_SCHEDULED_PUBLISH_RETRY_CRON_STRING=* * * * *

So there we need to test that it wont publish listings with scheduledPublishedAt in the future.
and that it publish it when its in the past.
It requires scheduled state.

Author Checklist:

  • Added QA notes to the issue with applicable URLs
  • Reviewed in a desktop view
  • Reviewed in a mobile view
  • Reviewed considering accessibility
  • Added tests covering the changes
  • Made corresponding changes to the documentation
  • Ran yarn generate:client and/or created a migration when required

Review Process:

  • Read and understand the issue
  • Ensure the author has added QA notes
  • Review the code itself from a style point of view
  • Pull the changes down locally and test that the acceptance criteria is met
  • Either (1) explicitly ask a clarifying question, (2) request changes, or (3) approve the PR, even if there are very small remaining changes, if you don't need to re-review after the updates

@KrissDrawing KrissDrawing added the 1 review needed Requires 1 more review before ready to merge label May 29, 2026
Base automatically changed from 6181/Admin-updates-when-in-scheduled-status to main June 1, 2026 08:52
@netlify

netlify Bot commented Jun 1, 2026

Copy link
Copy Markdown

Deploy Preview for partners-bloom-dev ready!

Name Link
🔨 Latest commit 44e5862
🔍 Latest deploy log https://app.netlify.com/projects/partners-bloom-dev/deploys/6a2949801512090008c82e9b
😎 Deploy Preview https://deploy-preview-6359--partners-bloom-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jun 1, 2026

Copy link
Copy Markdown

Deploy Preview for bloom-angelopolis canceled.

Name Link
🔨 Latest commit 44e5862
🔍 Latest deploy log https://app.netlify.com/projects/bloom-angelopolis/deploys/6a294980295ae6000821c891

@netlify

netlify Bot commented Jun 1, 2026

Copy link
Copy Markdown

Deploy Preview for bloom-exygy-dev ready!

Name Link
🔨 Latest commit 44e5862
🔍 Latest deploy log https://app.netlify.com/projects/bloom-exygy-dev/deploys/6a294980ae1cd50008ed3d98
😎 Deploy Preview https://deploy-preview-6359--bloom-exygy-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jun 1, 2026

Copy link
Copy Markdown

Deploy Preview for bloom-public-seeds ready!

Name Link
🔨 Latest commit 44e5862
🔍 Latest deploy log https://app.netlify.com/projects/bloom-public-seeds/deploys/6a294980fa27910008b2e7b6
😎 Deploy Preview https://deploy-preview-6359--bloom-public-seeds.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@YazeedLoonat YazeedLoonat left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM with a small suggestion

Comment thread api/.env.template Outdated
Comment thread api/src/services/listing.service.ts Outdated
Comment thread api/src/services/listing.service.ts Outdated
@ludtkemorgan ludtkemorgan added ready to merge Should be applied when a PR has been reviewed and approved and removed 1 review needed Requires 1 more review before ready to merge labels Jun 9, 2026
KrissDrawing and others added 3 commits June 10, 2026 13:13
Co-authored-by: Morgan Ludtke <42942267+ludtkemorgan@users.noreply.github.com>
@KrissDrawing KrissDrawing merged commit 81bd23c into main Jun 10, 2026
28 checks passed
@KrissDrawing KrissDrawing deleted the 6213/Autopublish-cron-job branch June 10, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Should be applied when a PR has been reviewed and approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants