-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finished template + refac state.go + refac periodic tasks #8
- Email.AddPart now checks whether an encoded attachment exceeds the max number of bytes for an attachment. If this is the case and Part.DropIfBig is not set then an error will be returned, otherwise the Part will not be added to the Email silently (02/02/2023 - 10:48:39) - Added the Finished TemplatePath and the FinishedContext (02/02/2023 - 10:49:04) - Moved all the PathsToBytes stuff to a new file in main along with some further documentation on the new PathsToBytes interface introduced previously (02/02/2023 - 10:59:08) - Moved all cached field types and symbols to the new cached_fields.go file in main (02/02/2023 - 11:32:59) - Implemented sends for all the new templates into the Scout procedure (02/02/2023 - 12:31:31) - Fully implemented the Finished template (02/02/2023 - 13:43:17) - Periodic tasks are now registered from the config using a new field within TaskConfig called PeriodicTaskSignatures (02/02/2023 - 14:24:02) - Updates to tasks.StartServer to display registered tasks + updates to errors (02/02/2023 - 14:51:04)
- Loading branch information
1 parent
b8ca9e1
commit 6b91d1f
Showing
14 changed files
with
1,563 additions
and
1,275 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{ $start := mustGet (.State.GetCachedField 4) "Start" }} | ||
{{ $batchSize := mustGet (.State.GetCachedField 4) "BatchSize" }} | ||
{{ $discoveryTweets := mustGet (.State.GetCachedField 4) "DiscoveryTweets" }} | ||
{{ $phase := mustGet (.State.GetCachedField 4) "Phase" }} | ||
Robo-scout has encountered an error during the Scout procedure which started at {{ stamp $start }} with batchSize = {{ $batchSize }}, and discoveryTweets = {{ $discoveryTweets }}. | ||
|
||
The error occurred in the {{ $phase.String }} phase at {{ stamp .Time }}: | ||
"{{ .Error.Error }}" | ||
|
||
{{ if .State.Loaded }}Current state was loaded from disk:{{ else }}Current state was just created, so we are probably starting from scratch today:{{ end }} | ||
{{ .State.String }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Robo-scout has finished the Scout procedure which started at {{ stamp .Started }} with batchSize = {{ .BatchSize }}, and discoveryTweets = {{ .DiscoveryTweets }}. | ||
|
||
This was achieved at {{ stamp .Finished }}, with a total time of {{ (duration .Finished .Started).String }}. The produced ScoutResult is as follows: | ||
- Discovery Phase | ||
- DiscoveryStats.Developers = {{ .Result.DiscoveryStats.Developers }} | ||
- DiscoveryStats.Games = {{ .Result.DiscoveryStats.Games }} | ||
- DiscoveryStats.TweetsConsumed = {{ .Result.DiscoveryStats.TweetsConsumed }} | ||
- DiscoveryStats.TotalSnapshots = {{ .Result.DiscoveryStats.TotalSnapshots }} | ||
- DiscoveryStats.SnapshotsCreated = {{ .Result.DiscoveryStats.SnapshotsCreated }} | ||
- Update Phase | ||
- UpdateStats.Developers = {{ .Result.UpdateStats.Developers }} | ||
- UpdateStats.Games = {{ .Result.UpdateStats.Games }} | ||
- UpdateStats.TweetsConsumed = {{ .Result.UpdateStats.TweetsConsumed }} | ||
- UpdateStats.TotalSnapshots = {{ .Result.UpdateStats.TotalSnapshots }} | ||
- UpdateStats.SnapshotsCreated = {{ .Result.UpdateStats.SnapshotsCreated }} | ||
- Snapshot Phase | ||
- SnapshotStats.Developers = {{ .Result.SnapshotStats.Developers }} | ||
- SnapshotStats.Games = {{ .Result.SnapshotStats.Games }} | ||
- SnapshotStats.TweetsConsumed = {{ .Result.SnapshotStats.TweetsConsumed }} | ||
- SnapshotStats.TotalSnapshots = {{ .Result.SnapshotStats.TotalSnapshots }} | ||
- SnapshotStats.SnapshotsCreated = {{ .Result.SnapshotStats.SnapshotsCreated }} | ||
- Disable Phase | ||
- DisableStats.EnabledDevelopersBefore = {{ .Result.DisableStats.EnabledDevelopersBefore }} | ||
- DisableStats.DisabledDevelopersBefore = {{ .Result.DisableStats.DisabledDevelopersBefore }} | ||
- DisableStats.EnabledDevelopersAfter = {{ .Result.DisableStats.EnabledDevelopersAfter }} | ||
- DisableStats.DisabledDevelopersAfter = {{ .Result.DisableStats.DisabledDevelopersAfter }} | ||
- DisableStats.DeletedDevelopers = {{ .Result.DisableStats.DeletedDevelopers }} | ||
- DisableStats.TotalSampledDevelopers = {{ .Result.DisableStats.TotalSampledDevelopers }} | ||
- Enable Phase | ||
- EnableStats.EnabledDevelopersBefore = {{ .Result.EnableStats.EnabledDevelopersBefore }} | ||
- EnableStats.DisabledDevelopersBefore = {{ .Result.EnableStats.DisabledDevelopersBefore }} | ||
- EnableStats.EnabledDevelopersAfter = {{ .Result.EnableStats.EnabledDevelopersAfter }} | ||
- EnableStats.DisabledDevelopersAfter = {{ .Result.EnableStats.DisabledDevelopersAfter }} | ||
- EnableStats.DeletedDevelopers = {{ .Result.EnableStats.DeletedDevelopers }} | ||
- EnableStats.TotalSampledDevelopers = {{ .Result.EnableStats.TotalSampledDevelopers }} | ||
- Delete Phase | ||
- DeleteStats.EnabledDevelopersBefore = {{ .Result.DeleteStats.EnabledDevelopersBefore }} | ||
- DeleteStats.DisabledDevelopersBefore = {{ .Result.DeleteStats.DisabledDevelopersBefore }} | ||
- DeleteStats.EnabledDevelopersAfter = {{ .Result.DeleteStats.EnabledDevelopersAfter }} | ||
- DeleteStats.DisabledDevelopersAfter = {{ .Result.DeleteStats.DisabledDevelopersAfter }} | ||
- DeleteStats.DeletedDevelopers = {{ .Result.DeleteStats.DeletedDevelopers }} | ||
- DeleteStats.TotalSampledDevelopers = {{ .Result.DeleteStats.TotalSampledDevelopers }} | ||
- Measure Phase | ||
- MeasureStats.SampledTrendingDevelopers = {{ .Result.MeasureStats.SampledTrendingDevelopers }} | ||
- MeasureStats.EmailSendTimeTaken = {{ .Result.MeasureStats.EmailSendTimeTaken.String }} | ||
- MeasureStats.EmailSize = {{ .Result.MeasureStats.EmailSize }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.