Skip to content

Commit

Permalink
Remove unnecessary method
Browse files Browse the repository at this point in the history
  • Loading branch information
tuliren committed Oct 25, 2021
1 parent a1c950c commit 9e0dc1e
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,6 @@ public Optional<String> getAttemptTemporalWorkflowId(final long jobId, final int
@Override
public <T> void writeOutput(final long jobId, final int attemptNumber, final T output) throws IOException {
final OffsetDateTime now = OffsetDateTime.ofInstant(timeSupplier.get(), ZoneOffset.UTC);
writeOutputToAttemptTable(jobId, attemptNumber, output, now);
// writeOutputToSyncStateTable(jobId, output, now);
}

private <T> void writeOutputToAttemptTable(final long jobId,
final int attemptNumber,
final T output,
final OffsetDateTime now)
throws IOException {
jobDatabase.transaction(
ctx -> ctx.update(ATTEMPTS)
.set(ATTEMPTS.OUTPUT, JSONB.valueOf(Jsons.serialize(output)))
Expand Down

0 comments on commit 9e0dc1e

Please sign in to comment.