Skip to content

[FIX] -- job status display in scheduler listing page template. #694

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DhavalGojiya
Copy link

Fix job status display in scheduler template

Description

This PR updates scheduler.html to correctly display the job status by using job.get_status.value instead of job.get_status.

Changes

  • Updated job status display in scheduler.html.
  • Affects the scheduler view at /django-rq/schedulers/<scheduler_id>/.

Before Screenshot:

Before PR

After Screenshot:

After PR

Testing

  • Verified that the job status is displayed correctly in the scheduler view.
  • Ensured no other UI elements were affected.

@@ -93,7 +93,7 @@
{{ job.ended_at|to_localtime|date:"Y-m-d, H:i:s" }}
{% endif %}
</td>
<td>{{ job.get_status }}</td>
<td>{{ job.get_status.value }}</td>

Choose a reason for hiding this comment

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

please fix test cases as well

@DhavalGojiya
Copy link
Author

Hey @selwin,

Any updates on this? Does this fix require test cases? I don't think so, as it's just a template frontend-side value change.

@selwin
Copy link
Collaborator

selwin commented Mar 3, 2025

No tests is necessary since you provided a screenshot, but can you make sure that all tests pass?

@selwin
Copy link
Collaborator

selwin commented Mar 3, 2025

All tests on current master now pass. Try rebasing?
CleanShot 2025-03-03 at 16 48 13

@DhavalGojiya
Copy link
Author

DhavalGojiya commented Mar 3, 2025

All tests on current master now pass. Try rebasing? CleanShot 2025-03-03 at 16 48 13

Sure will do it today :)

EDIT: Done ✅

@DhavalGojiya DhavalGojiya force-pushed the bugfix/job-status-display branch from 8e91e2b to ab68ce0 Compare March 3, 2025 10:32
- Updated 'job.get_status' to 'job.get_status.value' in 'scheduler.html' to correctly display the job status.
- This affects the scheduler view at '/django-rq/schedulers/<scheduler_id>/'.
@DhavalGojiya DhavalGojiya force-pushed the bugfix/job-status-display branch from ab68ce0 to 07d3a2a Compare March 3, 2025 10:37
@selwin
Copy link
Collaborator

selwin commented Mar 3, 2025

@DhavalGojiya the tests still failed, did you look at the failing test to see what went wrong?

@DhavalGojiya
Copy link
Author

@DhavalGojiya the tests still failed, did you look at the failing test to see what went wrong?

I think the issue is on GitHub Actions' side. The Docker pull image rate limit API has been exceeded, which is why the action is unable to run.
IMG_20250303_234622

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants