62e49f63c91997fd837ce94a5d069246bb8a6b69,app/grandchallenge/components/models.py,ComponentJob,schedule_job,#ComponentJob#,244

Before Change



    def schedule_job(self):

        kwargs = {}

        if self.container.requires_gpu:
            kwargs.update({"queue": "gpu"})

        if getattr(self.container, "queue_override", None):
            kwargs.update({"queue": self.container.queue_override})

        execute_job.apply_async(
            **kwargs,
            kwargs={
                "job_pk": self.pk,
                "job_app_label": self._meta.app_label,
                "job_model_name": self._meta.model_name,
            },
        )

    class Meta:
        abstract = True

After Change


        raise NotImplementedError

    def schedule_job(self):
        self.signature.apply_async()

    @property
    def signature(self):
        options = {}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: comic/grand-challenge.org
Commit Name: 62e49f63c91997fd837ce94a5d069246bb8a6b69
Time: 2020-08-18
Author: 12661555+jmsmkn@users.noreply.github.com
File Name: app/grandchallenge/components/models.py
Class Name: ComponentJob
Method Name: schedule_job


Project Name: comic/grand-challenge.org
Commit Name: 7818c4ae5385e21acc6772dee72e6930860490c5
Time: 2019-03-14
Author: code@jmsmkn.com
File Name: app/grandchallenge/evaluation/signals.py
Class Name:
Method Name: recalculate_ranks


Project Name: comic/grand-challenge.org
Commit Name: 2e975bbedcca67821b1b922fadc149ea9623d29e
Time: 2020-03-20
Author: 12661555+jmsmkn@users.noreply.github.com
File Name: app/grandchallenge/evaluation/signals.py
Class Name:
Method Name: recalculate_ranks