Zum Inhalt springen
Einträge
219
Quellen
1
Zuletzt aktualisiert

Folge fal, um die Release Notes in deinen Feed zu holen.

fal

IDLE-Zustand für Runner nachverfolgen

Der neue IDLE-Zustand zeigt an, wenn Runner bereit sind, aber keine Anfragen verarbeiten.

Track when runners are idle and waiting for work

<Warning> **Potential Breaking Change** - The runner state model has been updated. If you're monitoring or tracking runner states programmatically, you may need to update your integration to handle the new IDLE state. </Warning>

Understand runner utilization with the new IDLE state that shows when runners are ready but not actively processing requests.

  • IDLE state visibility - see when runners finish processing and are waiting for new work
  • Better resource monitoring - distinguish between actively processing requests and waiting states
  • Improved observability - track idle time to optimize scaling and resource allocation

See the new Understanding Runners guide and Optimizing Cold Starts guide for complete details on runner lifecycle, states, and performance optimization.

Originalquelle(öffnet in neuem Tab)Problem melden

fal

PlatformAction requiredTrack when runners are idle and waiting for work

<p><strong>WARNING</strong></p> <p><strong>Potential Breaking Change</strong> - The runner state model has been updated. If you're monitoring or tracking runner states programmatically, you may need to update your integration to handle the new IDLE state.</p> </blockquote> <p>Understand runner utilization with the new IDLE state that shows when runners are ready but not actively processing requests.</p> <ul> <li><strong>IDLE state visibility</strong> - see when runners finish processing and are waiting for new work</li> <li><strong>Better resource monitoring</strong> - distinguish between actively processing requests and waiting states</li> <li><strong>Improved observability</strong> - track idle time to optimize scaling and resource allocation</li> </ul>

Originalquelle(öffnet in neuem Tab)Problem melden

fal

Wartezeit mit start_timeout steuern

Sie können eine start_timeout für Anfragen festlegen, die abgebrochen wird, wenn die Wartezeit zu lang ist.

Control queue wait time with start_timeout

You can now set a start_timeout on requests which ensures that when queue time is too long, the request is aborted without starting.

See Client Libraries → Start Timeout for details.

Originalquelle(öffnet in neuem Tab)Problem melden

fal

Umgebungen für isolierte Bereitstellungen

Mit der neuen Umgebungsfunktion können Sie Anwendungen, Geheimnisse und Konfigurationen isoliert für Entwicklung, Staging und Produktion organisieren.

Environments for isolated deployments

Organize your applications, secrets, and configurations across different stages of your workflow with the new environments feature.

  • Create isolated environments for development, staging, and production
  • Environment-scoped secrets - use different API keys and credentials per environment
  • Deploy to specific environments using the --env flag
# Create a staging environment
fal environments create staging

# Deploy to staging
fal deploy my_app.py --env staging

# Set environment-specific secrets
fal secrets set API_KEY=staging-key --env staging

See environments documentation for details.

Originalquelle(öffnet in neuem Tab)Problem melden

fal

See Client Libraries → Start Timeout for details.PlatformEnvironments for isolated deploymentsOrganize your applications, secrets, and configurations across different stages of your workflow with the new environments feature.

<ul> <li><strong>Create isolated environments</strong> for development, staging, and production</li> <li><strong>Environment-scoped secrets</strong> - use different API keys and credentials per environment</li> <li><strong>Deploy to specific environments</strong> using the <code>--env</code> flag</li> </ul> <pre><code class="language-bash"># Create a staging environment fal environments create staging

Deploy to staging

fal deploy my_app.py --env staging

Set environment-specific secrets

fal secrets set API_KEY=staging-key --env staging </code></pre>

Originalquelle(öffnet in neuem Tab)Problem melden

fal

handle_exit() und teardown() für sanftes Herunterfahren

Sie können jetzt handle_exit() und teardown() Methoden definieren, um ein sanftes Herunterfahren zu ermöglichen.

Handle graceful shutdown with handle_exit() and teardown()

You can now define handle_exit() and teardown() methods in your app to handle graceful shutdown.

  • handle_exit() - Called when the runner is requested to terminate to signal handlers to stop early.
  • teardown() - Called when the runner is shutting down to clean up resources.

See lifespan docs for details.

Originalquelle(öffnet in neuem Tab)Problem melden

fal

See environments documentation for details.PlatformHandle graceful shutdown with handle_exit() and teardown()You can now define handle_exit() and teardown() methods in your app to handle graceful shutdown.

<ul> <li><strong><code>handle_exit()</code></strong> - Called when the runner is requested to terminate to signal handlers to stop early.</li> <li><strong><code>teardown()</code></strong> - Called when the runner is shutting down to clean up resources.</li> </ul>

Originalquelle(öffnet in neuem Tab)Problem melden

fal

Lokale Dateien mit COPY und ADD einbinden

Sie können nun standardmäßige Docker COPY- und ADD-Befehle verwenden, um lokale Dateien in Container-Builds einzubeziehen (experimentell).

Include local files in container builds with COPY and ADD

<Warning> **Experimental Feature** - This feature is currently experimental. </Warning>

You can now use standard Docker COPY and ADD commands to include local files in your container builds.

  • Automatic file parsing - fal parses your Dockerfile to find COPY/ADD commands and collects referenced files
  • Hash-based deduplication - Files are uploaded to fal's storage with content-addressable deduplication (files from app_files are reused automatically)
  • .dockerignore support - Create a .dockerignore file or use add_dockerignore() to exclude files
  • Multi-stage build support - COPY --from=... commands are correctly handled (only local files are collected)
  • Smart rebuilds - Changes to your fal.App file don't trigger rebuilds (it's pickled separately); only changes to COPY/ADD referenced files trigger rebuilds

Example:

dockerfile_str = """
FROM python:3.11
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY src/ ./src/
"""

class MyApp(fal.App):
    image = ContainerImage.from_dockerfile_str(dockerfile_str)

See custom container image docs.

Originalquelle(öffnet in neuem Tab)Problem melden

fal

See lifespan docs for details.PlatformInclude local files in container builds with COPY and ADD

<p><strong>WARNING</strong></p> <p><strong>Experimental Feature</strong> - This feature is currently experimental.</p> </blockquote> <p>You can now use standard Docker <code>COPY</code> and <code>ADD</code> commands to include local files in your container builds.</p> <ul> <li><strong>Automatic file parsing</strong> - fal parses your Dockerfile to find COPY/ADD commands and collects referenced files</li> <li><strong>Hash-based deduplication</strong> - Files are uploaded to fal's storage with content-addressable deduplication (files from <code>app_files</code> are reused automatically)</li> <li><strong>.dockerignore support</strong> - Create a <code>.dockerignore</code> file or use <code>add_dockerignore()</code> to exclude files</li> <li><strong>Multi-stage build support</strong> - <code>COPY --from=...</code> commands are correctly handled (only local files are collected)</li> <li><strong>Smart rebuilds</strong> - Changes to your <code>fal.App</code> file don't trigger rebuilds (it's pickled separately); only changes to COPY/ADD referenced files trigger rebuilds</li> </ul> <p>Example:</p> <pre><code class="language-python">dockerfile_str = """ FROM python:3.11 WORKDIR /app COPY requirements.txt . RUN pip install -r requirements.txt COPY src/ ./src/ """

class MyApp(fal.App): image = ContainerImage.from_dockerfile_str(dockerfile_str) </code></pre>

Originalquelle(öffnet in neuem Tab)Problem melden

fal

Wiederholungen für Bedingungen überspringen

Mit der Option skip_retry_conditions können Sie Wiederholungen für bestimmte Bedingungen wie Serverfehler oder Zeitüberschreitungen überspringen.

Skip retries for specific conditions

You can now skip retries for specific conditions using the skip_retry_conditions option.

class MyApp(fal.App):
    skip_retry_conditions=["timeout"]  # This app won't retry on timeout
    ...

Available conditions: "server_error", "timeout".

See retry policy docs for details.

Originalquelle(öffnet in neuem Tab)Problem melden

fal

See custom container image docs.PlatformSkip retries for specific conditionsYou can now skip retries for specific conditions using the skip_retry_conditions option.

<pre><code class="language-python">class MyApp(fal.App): skip_retry_conditions=["timeout"] # This app won't retry on timeout ... </code></pre> <p>Available conditions: <code>"server_error"</code>, <code>"timeout"</code>.</p>

Originalquelle(öffnet in neuem Tab)Problem melden

fal

Angemessenes Herunterfahren von fal-Apps

Ab fal 1.61.0 erhalten Runner beim Beenden ein SIGTERM-Signal und eine 5-Sekunden-Grace-Periode, bevor sie mit SIGKILL beendet werden; nutzen Sie die teardown()-Methode für Aufräumarbeiten.

Graceful shutdown of fal apps

Starting with fal>=1.61.0, runners now receive a SIGTERM signal when terminated and are given a 5-second grace period to complete ongoing requests before being forcefully terminated with SIGKILL.

This applies to all termination scenarios: expiration, manual stop/kill, and scaling down. Use the teardown() method to handle cleanup during this grace period.

See lifespan docs for details.

Originalquelle(öffnet in neuem Tab)Problem melden

fal

See retry policy docs for details.PlatformGraceful shutdown of fal appsStarting with fal>=1.61.0, runners now receive a SIGTERM signal when terminated and are given a 5-second grace period to complete ongoing requests before being forcefully terminated with SIGKILL.

<p>This applies to all termination scenarios: expiration, manual stop/kill, and scaling down. Use the <code>teardown()</code> method to handle cleanup during this grace period.</p>

Originalquelle(öffnet in neuem Tab)Problem melden

fal

Health-Check-Endpunkt für Anwendungen

Mit dem health_check-Parameter im @fal.endpoint()-Dekorator können Sie einen Health-Check-Endpunkt definieren, den fal alle 15 Sekunden prüft, um fehlerhafte Runner automatisch zu ersetzen.

Add a health check endpoint to your application

Add a health check endpoint to your application to automatically replace unhealthy runners.

  • Health check endpoint - Pass the health_check parameter to the @fal.endpoint() decorator to configure an endpoint as your health check
  • Periodic checks and recovery - fal periodically (every 15 seconds) calls this endpoint and replace unhealthy runners if it fails for a few consecutive calls

Example:

class MyApp(fal.App):
    @fal.endpoint("/health", health_check=fal.HealthCheck(failure_threshold=3))
    def health(self) -> HealthResponse:
        if not self.connection.is_alive():
            raise RuntimeError("Lost connection to the external service")
        return HealthResponse(status="ok")

See health check endpoint docs.

Originalquelle(öffnet in neuem Tab)Problem melden

fal

Build-Cache für Umgebungen deaktivieren

Sie können den Build-Cache für Umgebungen nun mit dem Flag --no-cache bei den Befehlen fal deploy oder fal run deaktivieren.

Disable environment build cache

You can now disable the environment build cache by passing the --no-cache flag to the fal deploy or fal run command.

See custom container image docs.

Originalquelle(öffnet in neuem Tab)Problem melden

fal

See lifespan docs for details.PlatformDisable environment build cacheYou can now disable the environment build cache

by passing the <code>--no-cache</code> flag to the <code>fal deploy</code> or <code>fal run</code> command.</p>

Originalquelle(öffnet in neuem Tab)Problem melden

fal

See custom container image docs.PlatformAdd a health check endpoint to your applicationAdd a health check endpoint to your application to automatically replace unhealthy runners.

<ul> <li><strong>Health check endpoint</strong> - Pass the <code>health_check</code> parameter to the <code>@fal.endpoint()</code> decorator to configure an endpoint as your health check</li> <li><strong>Periodic checks and recovery</strong> - fal periodically (every 15 seconds) calls this endpoint and replace unhealthy runners if it fails for a few consecutive calls</li> </ul> <p>Example:</p> <pre><code class="language-python">class MyApp(fal.App): @fal.endpoint("/health", health_check=fal.HealthCheck(failure_threshold=3)) def health(self) -> HealthResponse: if not self.connection.is_alive(): raise RuntimeError("Lost connection to the external service") return HealthResponse(status="ok") </code></pre>

Originalquelle(öffnet in neuem Tab)Problem melden

fal

Skalierungsverzögerung für Ihre Anwendung

Mit der neuen Funktion „Scaling Delay“ können Sie festlegen, wie viele Sekunden das System auf einen Runner wartet, bevor es einen weiteren Runner hochskaliert.

Scale your application with the new scaling delay feature

Scale your application with the new scaling delay feature.

  • Scaling delay - the amount of seconds the system will wait for a request to be picked up by a runner before triggering a scale up of a runner

Example:

class MyApp(fal.App):
    scaling_delay = 30
    # ...

See scaling docs.

Originalquelle(öffnet in neuem Tab)Problem melden

fal

See health check endpoint docs.PlatformScale your application with the new scaling delay featureScale your application with the new scaling delay feature.

<ul> <li><strong>Scaling delay</strong> - the amount of seconds the system will wait for a request to be picked up by a runner before triggering a scale up of a runner</li> </ul> <p>Example:</p> <pre><code class="language-python">class MyApp(fal.App): scaling_delay = 30 # ... </code></pre>

Originalquelle(öffnet in neuem Tab)Problem melden

fal

Kürzere Kaltstarts mit PyTorch-Caches

Die neuen Inductor-Cache-Hilfsprogramme laden vorcompilierte CUDA-Kernel in etwa 2 Sekunden statt sie in 20-30 Sekunden neu zu kompilieren, mit GPU-spezifischer Speicherung und automatischer Synchronisierung.

Reduce cold start times with shared compiled PyTorch caches

Dramatically reduce cold start times for torch.compile() models with the new inductor cache utilities.

  • Load pre-compiled CUDA kernels in ~2 seconds instead of recompiling for 20-30 seconds on each worker
  • GPU-specific caching automatically organized by GPU type (H100, H200, A100)
  • Two usage patterns: Manual control with load_inductor_cache() / sync_inductor_cache() or automatic with synchronized_inductor_cache() context manager
  • Persistent shared storage at /data/inductor-caches/<GPU_TYPE>/<cache_key>.zip
  • First worker compiles and shares, subsequent workers load instantly

Example:

from fal.toolkit import synchronized_inductor_cache

with synchronized_inductor_cache("mymodel/v1"):
    self.model = torch.compile(self.model)
    self.warmup()  # Compilation happens once, synced automatically

See compilation cache docs.

Originalquelle(öffnet in neuem Tab)Problem melden