-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gateway scheduler refactor prototype
Signed-off-by: Akihiko Kuroda <[email protected]>
- Loading branch information
1 parent
0449a5b
commit 22558ef
Showing
9 changed files
with
123 additions
and
136 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -71,6 +71,7 @@ | |
LocalJobClient, | ||
Job, | ||
save_result, | ||
set_status, | ||
) | ||
from .pattern import ( | ||
QiskitPattern, | ||
|
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,17 @@ | ||
from django.db.models.signals import post_save | ||
from django.dispatch import receiver | ||
from api.models import Job | ||
from api.management.commands.schedule_queued_jobs import Command as Schedule | ||
from api.management.commands.free_resources import Command as Free | ||
|
||
|
||
@receiver(post_save, sender=Job) | ||
def save_job(sender, instance, created, **kwargs): | ||
print("save_job") | ||
print(instance) | ||
print("Free") | ||
free = Free() | ||
free.handle() | ||
print("Schedule") | ||
schedule = Schedule() | ||
schedule.handle() |
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 was deleted.
Oops, something went wrong.