Skip to content

Commit

Permalink
🐛 FIX: Should run sync package on all worker (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 authored Oct 2, 2022
1 parent bbc08fd commit 24f920d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/port/schedule/SyncPackageWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { PackageSyncerService } from '../../core/service/PackageSyncerService';
let executingCount = 0;

@Schedule<IntervalParams>({
type: ScheduleType.WORKER,
type: ScheduleType.ALL,
scheduleData: {
interval: 60000,
interval: 1000,
},
})
export class SyncPackageWorker {
Expand Down
2 changes: 1 addition & 1 deletion config/config.default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default (appInfo: EggAppConfig) => {
// - exist: only sync exist packages, effected when `enableCheckRecentlyUpdated` or `enableChangesStream` is enabled
syncMode: 'none',
hookEnable: false,
syncPackageWorkerMaxConcurrentTasks: 20,
syncPackageWorkerMaxConcurrentTasks: 10,
triggerHookWorkerMaxConcurrentTasks: 10,
createTriggerHookWorkerMaxConcurrentTasks: 10,
// stop syncing these packages in future
Expand Down

0 comments on commit 24f920d

Please sign in to comment.