Manage a service

Restart a service, run a cron job now, change build settings, stop or delete a service.

Last updated

Open the service in Compute. Its tabs are Overview, Variables, Scaling, Logs and Settings.

Restart

Choose Restart and confirm. A web service or worker starts again on its current deployment's image: no rebuild, same size and instances. The service shows Deploying, then Running.

Restart is not offered for cron jobs and functions, while a deployment is running, or when there is no built image.

Cron jobs

  • Set the schedule on the cron job's page. Schedules run in UTC at minute precision; a missed slot is skipped.
  • Run now starts a manual run at once. Recent runs shows it marked as manual. Only one run of a job runs at a time.

Functions

Invoke a live function from its page. Each call needs an idempotency key; a successful result is returned again for the same key.

Build settings

  1. Open Hosting › Build & deploy settings › Build.
  2. Change the install, build and start commands or the health check path.
  3. Choose Save build settings. The settings apply on the next deployment; choose Deploy now to apply them.

Members without manage rights see a note instead of the form.

Stop

Stop stops the service and turns off its cron schedule. It needs a sign-in within the last 10 minutes. A stopped app ignores pushes until it is deployed again.

Delete a service

  1. Open the service's Settings and choose Delete service.
  2. Type the service name and confirm. A sign-in within the last 10 minutes is needed.

Its previews are removed, waiting pushes and builds are cancelled and the service stops. Compute then shows a deleted note.

Blocked services

If DASTER blocks a service for abuse, it is stopped and new deployments are refused with app_blocked and the reason. Logs, metrics, variables and usage keep working. Contact DASTER support; only DASTER can remove a block.

With the API

Below /v1/projects/{projectId}/compute/services/{serviceId} with ?organizationId=…:

ActionRequest
RestartPOST …/restart with { "confirmed": true } and Idempotency-Key
Run nowPOST …/run with Idempotency-Key; answers { "runId", "state": "running" }
Cron schedulePOST …/cron with { "schedule": "0 * * * *", "enabled": true }
InvokePOST …/invoke with { "input": … } and Idempotency-Key
Build settingsPUT …/config with { "config": { "installCommand", "buildCommand", "startCommand", "port", "healthPath" } }
StopPOST …/stop with { "confirmed": true }
DeleteDELETE … with { "confirmed": true } and Idempotency-Key

Recent runs: GET /v1/projects/{projectId}/compute/apps/{appId}/runs.