Skip to content

Commit

Permalink
Turn off analyzer and dartdoc job processing. (#6914)
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos authored Aug 16, 2023
1 parent 88e5875 commit 75bd22c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 32 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ AppEngine version, listed here to ease deployment and troubleshooting.

## Next Release (replace with git tag when deployed)
* Note: Upgraded `package:gcloud`.
* Note: `analyzer` and `dartdoc` processing is turned off.

## `20230810t094700-all`
* Bumped runtimeVersion to `2023.08.08`.
Expand Down
4 changes: 2 additions & 2 deletions analyzer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ resources:
# instances: 1

automatic_scaling:
min_num_instances: 2
max_num_instances: 8
min_num_instances: 1
max_num_instances: 2

skip_files:
- ^\.git/.*$
Expand Down
13 changes: 0 additions & 13 deletions app/lib/service/entrypoint/analyzer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import 'package:logging/logging.dart';
import 'package:pub_dev/package/deps_graph.dart';

import '../../analyzer/handlers.dart';
import '../../analyzer/pana_runner.dart';
import '../../job/backend.dart';
import '../../job/job.dart';
import '../../shared/datastore.dart' as db;
import '../../shared/env_config.dart';
import '../../shared/handler_helpers.dart';
Expand All @@ -39,7 +37,6 @@ class AnalyzerCommand extends Command {
await runIsolates(
logger: logger,
frontendEntryPoint: _frontendMain,
jobEntryPoint: _jobMain,
workerEntryPoint: _workerMain,
deadWorkerTimeout: Duration(hours: 1),
frontendCount: 1,
Expand All @@ -54,16 +51,6 @@ Future _frontendMain(EntryMessage message) async {
await runHandler(logger, analyzerServiceHandler);
}

Future _jobMain(EntryMessage message) async {
message.protocolSendPort.send(ReadyMessage());

await popularityStorage.start();
final jobProcessor = AnalyzerJobProcessor(
aliveCallback: () => message.aliveSendPort.send(null));
final jobMaintenance = JobMaintenance(db.dbService, jobProcessor);
await jobMaintenance.run();
}

Future _workerMain(EntryMessage message) async {
message.protocolSendPort.send(ReadyMessage());

Expand Down
15 changes: 0 additions & 15 deletions app/lib/service/entrypoint/dartdoc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import 'dart:isolate';
import 'package:args/command_runner.dart';
import 'package:logging/logging.dart';

import '../../dartdoc/dartdoc_runner.dart';
import '../../dartdoc/handlers.dart';
import '../../job/job.dart';
import '../../shared/datastore.dart';
import '../../shared/env_config.dart';
import '../../shared/handler_helpers.dart';
import '../../shared/popularity_storage.dart';
Expand All @@ -35,7 +32,6 @@ class DartdocCommand extends Command {
await runIsolates(
logger: logger,
frontendEntryPoint: _frontendMain,
jobEntryPoint: _jobMain,
workerEntryPoint: _workerMain,
deadWorkerTimeout: Duration(hours: 1),
frontendCount: 1,
Expand All @@ -50,17 +46,6 @@ Future _frontendMain(EntryMessage message) async {
await runHandler(logger, dartdocServiceHandler);
}

Future _jobMain(EntryMessage message) async {
message.protocolSendPort.send(ReadyMessage());

await popularityStorage.start();
final jobProcessor = DartdocJobProcessor(
aliveCallback: () => message.aliveSendPort.send(null),
);
final jobMaintenance = JobMaintenance(dbService, jobProcessor);
await jobMaintenance.run();
}

Future _workerMain(EntryMessage message) async {
message.protocolSendPort.send(ReadyMessage());

Expand Down
4 changes: 2 additions & 2 deletions dartdoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ resources:
# instances: 1

automatic_scaling:
min_num_instances: 2
max_num_instances: 8
min_num_instances: 1
max_num_instances: 2

skip_files:
- ^\.git/.*$
Expand Down

0 comments on commit 75bd22c

Please sign in to comment.