Resolve the error related to distributed task execution in NX Cloud by ensuring the build tasks for the driver-app and rider-app are marked as cacheable.
Description:
When attempting to run distributed task execution with NX Cloud, the error occurs because the build tasks for driver-app and rider-app are not marked as cacheable. NX Cloud only supports distributed execution for tasks that are cacheable, such as build and test tasks.
Steps to Fix:
Configure NX Cacheable Operations:
Open the nx.json file and ensure the build tasks for driver-app and rider-app are listed under cacheableOperations.
Check Cacheable Targets:
Ensure the target configuration in workspace.json or project.json for build is set to cacheable.
Verify Configurations:
Run a test to verify if NX Cloud can now execute these tasks in distributed mode without errors.
Acceptance Criteria:
The build tasks for driver-app and rider-app should be executed in NX Cloud distributed task mode without throwing errors.
Tasks are properly cached to speed up future builds.
As a note we are having dependencies issues, I'll move the dependencies to the specific projects for now and later we can move common dependencies that won't have conflicts
Task: Fix NX Cloud Distributed Task Execution Error
Objective:
Resolve the error related to distributed task execution in NX Cloud by ensuring the build tasks for the
driver-app
andrider-app
are marked as cacheable.Description:
When attempting to run distributed task execution with NX Cloud, the error occurs because the
build
tasks fordriver-app
andrider-app
are not marked as cacheable. NX Cloud only supports distributed execution for tasks that are cacheable, such as build and test tasks.Steps to Fix:
Configure NX Cacheable Operations:
nx.json
file and ensure thebuild
tasks fordriver-app
andrider-app
are listed undercacheableOperations
.Check Cacheable Targets:
target
configuration inworkspace.json
orproject.json
forbuild
is set to cacheable.Verify Configurations:
Acceptance Criteria:
build
tasks fordriver-app
andrider-app
should be executed in NX Cloud distributed task mode without throwing errors.