We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be5622f commit a1e832fCopy full SHA for a1e832f
app/lib/task/backend.dart
@@ -1327,8 +1327,13 @@ final class _TaskDataAccess {
1327
return await withRetryTransaction(_db, (tx) async {
1328
// Reload [state] within a transaction to avoid overwriting changes
1329
// made by others trying to update state for another package.
1330
- final s = await tx.lookupValue<PackageState>(
+ final s = await tx.lookupOrNull<PackageState>(
1331
PackageState.createKey(_db.emptyKey, runtimeVersion, package));
1332
+ if (s == null) {
1333
+ // No entry has been created yet, probably because of a new deployment rolling out.
1334
+ // We can ignore it for now.
1335
+ return false;
1336
+ }
1337
if (s.lastDependencyChanged!.isBefore(publishedAt)) {
1338
tx.insert(
1339
s
0 commit comments