• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aiidateam / aiida_core / 4156
74%

Build:
DEFAULT BRANCH: develop
Ran 25 Oct 2018 06:02AM UTC
Jobs 3
Files 391
Run time 6min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
4156

push

travis-ci

web-flow
Make `update`, `submit` and `retrieve` transport tasks idem potent (#2111)

The transport tasks for job processes can be interrupted violently after having
completed the bulk of their task but before being able to create the state
transition and therewith creating a checkpoint. This means that when the daemon
is restarted the same task is executed. This could lead to various side effects.
Here we make sure that for the update, submit and retrieve transport tasks can
safely be executed twice. When the task finishes, if applicable, the calculation
state will be set. In the beginning of the task we check if the state is already
set, which indicates that the task was already ran, and we skip it.

This still leaves a small window for the task being executed twice, since there
is sometime between the task returning successfully and the state being set, but
this should minimize the time window.

Note that the submit task is not truely idem potent, as when it will be executed
a second time (after the first time successfully submitted a job, but didn't get
the chance to set the state), the job will be submitted once more to the scheduler.
However, there is really no way to guarantee that his happens as there will always
be a time window between the job being submitted to the scheduler and for us to
get the chance to reflect that in the node, in which the daemon process can be
abruptly killed.

22 of 22 new or added lines in 2 files covered. (100.0%)

22166 of 36609 relevant lines covered (60.55%)

1.71 hits per line

Jobs
ID Job ID Ran Files Coverage
5 4156.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 25 Oct 2018 06:02AM UTC 0
60.48
Travis Job 4156.5
6 4156.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 25 Oct 2018 06:06AM UTC 0
55.55
Travis Job 4156.6
8 4156.8 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 25 Oct 2018 06:08AM UTC 0
54.47
Travis Job 4156.8
Source Files on build 4156
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4156
  • 666bbca8 on github
  • Prev Build on develop (#4154)
  • Next Build on develop (#4179)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc