Skip to content
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

move parts to SignalInfoManager model #146

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Skrattoune
Copy link
Contributor

I implemented some ToDos that you let in the code of task.py:

    signal_kwargs = {
        # TODO: move parts into huey_monitor.models.SignalInfoManager
        'hostname': get_hostname(),
        'pid': os.getpid(),
        'thread': threading.current_thread().name,
        'signal_name': signal,
    }

and

            last_signal = SignalInfoModel.objects.create(
                # TODO: move parts into huey_monitor.models.SignalInfoManager
                hostname=get_hostname(),
                pid=os.getpid(),
                thread=threading.current_thread().name,
                task_id=task_model_instance.pk,
                signal_name='unknown',
                progress_count=task_model_instance.progress_count,
            )

This is needed for the upcoming PR.

Best regards

@Skrattoune Skrattoune marked this pull request as draft February 17, 2024 17:49
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.

1 participant