Skip to content

feat (#66): added starting datetimes to TaskResults #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

vidski
Copy link
Contributor

@vidski vidski commented Jul 4, 2024

#66 Added started_at datetime to TaskResults. This PR is an extension to #49

Copy link
Owner

@RealOrangeOne RealOrangeOne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for picking this up! Just 1 small suggestion.

@@ -40,6 +40,7 @@ def enqueue(
id=str(uuid4()),
status=status,
enqueued_at=enqueued_at,
started_at=timezone.now(),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue: started_at should be run just before the task started, not once it finished.

@RealOrangeOne RealOrangeOne linked an issue Jul 7, 2024 that may be closed by this pull request
@vidski
Copy link
Contributor Author

vidski commented Jul 8, 2024

Thanks for picking this up! Just 1 small suggestion.

Moved started_at right after enqueued_at, I guess we always want to have a started_at time, even if it fails?

@RealOrangeOne
Copy link
Owner

I guess we always want to have a started_at time, even if it fails?

Correct. A task can't fail unless it starts.

@RealOrangeOne RealOrangeOne merged commit 7c005da into RealOrangeOne:master Jul 9, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Store task execution start time
2 participants