Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

refactor(flyio): remove fallback GET, use list response only for machine deploy

IgorHorta35540340acec
diff --git a/backend/src/services/secret-sync/flyio/flyio-sync-fns.ts b/backend/src/services/secret-sync/flyio/flyio-sync-fns.ts
index e24c1dcc5d..5acd1e5bcf 100644
--- a/backend/src/services/secret-sync/flyio/flyio-sync-fns.ts
+++ b/backend/src/services/secret-sync/flyio/flyio-sync-fns.ts
@@ -83,16 +83,7 @@ const deployAppMachines = async (secretSync: TFlyioSyncWithCredentials, releaseV
if (toUpdate.length === 0) return;
for (const machine of toUpdate) {
- let { region, config } = machine;
- if (!region || config == null) {
- const { data: fullMachine } = await request.get<{
- id: string;
- state: string;
- region: string;
- config: Record<string, unknown>;
- }>(`${machinesApiBase}/${machine.id}`, { headers });
- ({ region, config } = fullMachine);
- }
+ const { region, config } = machine;
if (region && config != null) {
const body: {
config: Record<string, unknown>;
@@ -109,7 +100,6 @@ const deployAppMachines = async (secretSync: TFlyioSyncWithCredentials, releaseV
body.skip_launch = false;
await request.post(`${machinesApiBase}/${machine.id}`, body, { headers });
-
await request.get(
`${machinesApiBase}/${machine.id}/wait?state=started&timeout=${FLYIO_MACHINE_WAIT_TIMEOUT_SECONDS}`,
{ headers }