Skip to content

Commit

Permalink
Skip manually uninstalling scheduler job
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerkretzmar committed May 27, 2024
1 parent 1de648d commit 392dba4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,11 @@ export async function destroyPreview({

core.info(`Found site: ${site.name}.`);

core.info('Uninstalling scheduler.');
await site.uninstallScheduler();
// There is an unresolved issue with Forge where if we attempt to uninstall the scheduler like this and then
// immediately delete the site, it gets stuck in a 'removing' state indefinitely and is not fully deleted.
// Forge uninstalls the default scheduler automatically when deleting sites though, so for now we can skip this.
// core.info('Uninstalling scheduler.');
// await site.uninstallScheduler();

core.info('Deleting site.');
await site.delete();
Expand Down

0 comments on commit 392dba4

Please sign in to comment.